The gas that naturally occurs in air and screens out harmful rays from the sun is ozone (O3).
Ozone forms a layer in the stratosphere, called the ozone layer, which absorbs most of the Sun's ultraviolet (UV) radiation. UV radiation can cause skin cancer, cataracts, and other health problems.