Stratosphere: Earth's Shield Against Harmful UV Rays
The layer of the atmosphere that serves as a shield against ultraviolet rays from the sun is the stratosphere.
Specifically, it's the ozone layer within the stratosphere that absorbs most of the harmful ultraviolet radiation from the sun. This layer is made up of ozone molecules (O3), which are highly effective at absorbing UV radiation.