There are four main layers of the atmosphere: the troposphere, stratosphere, mesosphere, and thermosphere. The troposphere extends from the Earth's surface to around 10 km and contains all weather. Above the troposphere is the stratosphere, which extends from 10-50 km and contains the ozone layer. The mesosphere is the layer above the stratosphere from 50-80 km, and contains the coldest temperatures. The outermost layer is the thermosphere from 80-480 km, containing the ionosphere and heating to high temperatures.