|Mesosphere, Stratosphere, Thermosphere, Troposphere
In the mesosphere, temperature again drops as altitude increases until the coldest point in the Earth's atmosphere, the mesopause, is reached where temperatures fall to −225 °F (−143 °C).
The stratosphere is just above the troposphere and is stratified in temperature with warmer layers higher and cooler layers closer to Earth. This increase in temperature is a result of absorption of the Sun's radiation by the ozone layer.
Temperatures again increase with altitude in the thermosphere which is the hottest (4,530 °F / 2,500 °C) atmospheric layer due to direct exposure to the Sun's radiation. However, the gas in this layer is highly diluted so even though the atoms of gas may be very high in temperature, there are too few of them to effectively transfer much heat.
The Earth's atmosphere has several layers starting with the troposphere which is closest in proximity to the surface. Containing most of the Earth's breathable air (oxygen and nitrogen), it's a region with warmer temperatures closer to the surface and cooler temperatures farther away which results in the rising and falling air that generates weather.