The ozone layer is located in the upper part of the stratosphere (about 30 km to 50 km). This ozone layer absorbs ultraviolet rays coming from the Sun and other celestial bodies. These radiations are extremely harmful to humans, animals and plants. Thus the ozone layer acts as a protective shield.