The ozone layer (O₃) is primarily located in the stratosphere, about 15-35 kilometers above the Earth's surface. Its crucial function is to absorb a significant portion of the Sun's harmful ultraviolet (UV) radiation, particularly UV-B and UV-C rays. This absorption prevents most of the high-energy UV radiation from reaching the Earth's surface, where it can cause damage to living organisms (like skin cancer, cataracts, and harm to plant life and marine ecosystems).