The atmosphere is divided into five main layers - troposphere, stratosphere, mesosphere, thermosphere, and exosphere. The troposphere is where weather occurs and contains around 80% of the atmosphere's mass. The stratosphere is above the troposphere and contains the ozone layer. Temperature decreases with increasing altitude in the troposphere but increases in the upper stratosphere due to ozone.