The main function of ozone layer in the atmosphere is to:
shield Earth from UV rays from Sun
Ozone is a layer in the atmosphere that protects everything living on the Earth from harmful ultraviolet (UV) rays emitted from the sun. Without the layer of ozone in the atmosphere, it would be very difficult for anything to survive on the surface of this planet. Ozone layer acts as a shield to absorb the UV rays.