From lowest to highest, the major layers are the troposphere, stratosphere, mesosphere, thermosphere and exosphere.
Heat is produced in the process of the formation of Ozone and this heat is responsible for temperature increases from an average -60°F (-51°C) at tropopause to a maximum of about 5°F (-15°C) at the top of the stratosphere. How is temperature different in each layer of the atmosphere?
In some layers, temperature increases with altitude and in others it decreases. The temperature gradient in each layer is determined by the heat source of the layer. The four main layers of the atmosphere have different temperature gradients, creating the thermal structure of the atmosphere.
The troposphere is protected from the hard ultraviolet radiation of the Sun by the higher layers of the atmosphere, namely by the stratospheric ozone layer. Because of this protection, many molecules are more stable in the troposphere then elsewhere in the atmosphere.