In this paper we investigate the effects of the temporal variation of pollution dispersion, traffic flows and vehicular emissions on pollution concentration and illustrate the need for temporally differentiated road pricing through an application to the case of the congestion charge in Stockholm, Sweden. By accounting explicitly for the role of pollution dispersion on optimal road pricing, we allow for a more comprehensive view of the economy-ecology interactions at stake, showing that price differentiation is an optimal response to the physical environment. Most congestion charges in place incorporate price bans to mitigate congestion. Our analysis indicates that, to ensure compliance with air quality standards, such price variations should also be a response to limited pollution dispersion.