The ozone layer protects the earth from hazardous ultraviolet radiation from the sun.