History of Earth the third atmosphere, rich in oxygen, emerged when bacteria began to produce oxygen about 2.8 Ga. In early models for the formation of the atmosphere and ocean, the second atmosphere was formed by outgassing of volatiles from the Earth's interior. Now it is considered likely that many of the volatiles were delivered during accretion by a process known as "impact degassing" in which incoming bodies vaporize on impact. The ocean and atmosphere would, therefore, have started to form even as the Earth formed. The new atmosphere probably contained water vapor, carbon dioxide, nitrogen, and smaller amounts of other gases. Planetesimals
Atmosphere of Earth (see the temperature section, below). Because the general pattern of the temperature/altitude profile is constant and measurable by means of instrumented balloon soundings, the temperature behavior provides a useful metric to distinguish atmospheric layers. In this way, Earth's atmosphere can be divided (called atmospheric stratification) into five main layers. Excluding the exosphere, the atmosphere has four primary layers, which are the troposphere, stratosphere, mesosphere, and thermosphere. From highest to lowest, the five main layers are: The exosphere is the outermost layer of Earth's atmosphere (i.e. the upper limit of the atmosphere). It extends from the exobase, which is located at