Ozone layer is the layer which protects the earth from the harmful Ultra Violet(UV) rays of the Sun.
They are there to prevent these rays from entering into the earth's atmosphere.
The O₂ molecule along with, O,
gives the Ozone, O₃.
Hope this will help you.