The atmosphere of Earth consists of a layer of mixed gas (commonly referred to as air) that is retained by gravity, surrounding the Earth's surface. It contains variable quantities of suspended aerosols and particulates that create weather features such as clouds and hazes. The atmosphere serves as a protective buffer between the Earth's surface and outer space. It shields the surface from most meteoroids and ultraviolet solar radiation, reduces diurnal temperature variation – the temperature extremes between day and night, and keeps it warm through heat retention via the greenhouse effect. The atmosphere redistributes heat and moisture among different regions via air currents, and provides the chemical and climate conditions that allow life to exist and evolve on Earth.
By mole fraction (i.e., by quantity of molecules), dry air contains 78.08% nitrogen, 20.95% oxygen, 0.93% argon, 0.04% carbon dioxide, and small amounts of other trace gases (see Composition below for more detail). Air also contains a variable amount of water vapor, on average around 1% at sea level, and 0.4% over the entire atmosphere.