Atmosphere maintains the temperature of our planet in a steady situation, neither too much high nor too much low. This happens because of a gaseous layer present in our atmosphere which prevents the extra heating by sunlight and also too much cooling at night by absorbing the heat. The atmosphere also has a preventive layer of ozone which does not allow harmful radiations like UV rays to enter our environment. So, in this way atmosphere acts as a blanket for our planet.