The ozone layer, located in the stratosphere, primarily absorbs ultraviolet (UV) radiation from the sun. This absorption is crucial for protecting life on Earth from harmful UV rays that can cause skin cancer and damage ecosystems. IR and visible light mostly pass through the atmosphere.