The atmosphere is composed of gases, vapour, and particulates that surround the Earth. It is divided into four main layers:
1) The troposphere, the lowest layer where weather occurs, decreases in temperature with height up to 16km. 
2) The stratosphere temperature increases up to 50km where the ozone layer is located.  
3) The mesosphere temperature decreases again up to 80km.
4) The thermosphere is the outermost layer where temperature rapidly increases with altitude up to 640km and beyond.