The atmosphere is composed of four main layers: the troposphere, stratosphere, mesosphere, and thermosphere. The troposphere contains around 75% of the atmosphere's mass and is where weather occurs. The stratosphere contains the ozone layer which protects the Earth from UV radiation. The thermosphere is the hottest layer due to absorption of solar radiation.