Wireless multimedia sensor networks (WMSNs) generate a huge amount of multimedia data. Congestion is one of the most challenging open issues in WMSNs. Congestion causes low throughput, high packet loss and low energy efficiency. Congestion happens when the data carried by the network surpasses the available capacity. This article presents an energy-efficient distributed congestion control protocol (DCCP) to mitigate congestion and improve end-to-end delay. Compared to the other protocols, the DCCP protocol proposed in this article can alleviate congestion by intelligently selecting the best path. First, congestion is detected by using two congestion indicators. Second, each node aggregates the received data and builds a traffic congestion map. The traffic congestion map is used to calculate the best path. Therefore, the traffic is balanced on different routes, which reduces the end-to-end delay. Finally, a rate controller is designed to prevent congestion in the network by sending a congestion notification message to a source node. After receiving a congestion notification message, the source node immediately adjusts its transmission rate. Experimental results based on raspberry pi sensor nodes show that the proposed DCCP protocol significantly improves network performance and is superior to existing modern congestion control protocols.