The atmosphere protects the earth from harmful ultraviolet and infrared rays of the sun. It has oxygen and nitrogen, the life sustaining gases. It helps in retaining the necessary warmth on the earth and helps in the circulation of water vapour as the source of rainfall. These functions of atmosphere keep it in a dynamic state.