The atmosphere is divided into five layers. The layer that is closest to the Earth is the troposphere, followed by the stratosphere, the mesosphere, the thermosphere and the exosphere. All layers vary in thickness and are divided on the basis of their temperature, chemical composition, etc.