What is the function of ozone in the ozone layer?

The ozone layer protects the Earth from ultraviolet (UV) rays from the sun, which are harmful to us. Without the ozone layer, the effects of global warming would happen at a much faster rate, and UV can be harmful to many forms of life.