CO2 is a good transmitter of sunlight, but partially restricts infrared radiation going back from the earth into space. This produces the so-called greenhouse effect that prevents a drastic cooling of the Earth during the night. Increasing the amount of CO2 in the atmosphere reinforces this effect and is expected to result in a warming of the Earth's surface. Nitrogen oxides contribute most of the atmospheric contaminants. They stay in the atmosphere from 22 to 111 years.
Chlorofluorocarbons move up to the stratosphere gradually over several decades.
With the introduction of petroleum to replace coal economies in countries, photochemical smog has become predominant in many cities, which are located in sunny, warm, and dry climates with many motor vehicles. The worst episodes of photochemical smog tend to occur in summer.