The atmosphere is the thin layer of gases surrounding the earth that protects it from harmful radiations by disintegrating space debris before impact and contains an ozone layer that protects from UV rays. It is made up of four main layers: the troposphere, stratosphere, mesosphere, and thermosphere.