The study of the chemical reactions that occur in the Earth's atmosphere due to the presence of sunlight.