The ozone layer absorbs most of the Sun's harmful ultraviolet (UV) rays.