Correct option is D
The ozone layer, found in the Earth's stratosphere, plays a critical role in absorbing and blocking the majority of the Sun's harmful ultraviolet (UV) radiation. While it allows visible light and infrared radiation to pass through, it effectively filters out most UV-B and all UV-C radiation, which can be harmful to living organisms, causing skin cancer, cataracts, and damaging ecosystems. It does not significantly block X-rays, gamma rays, or infrared radiation.