The ozone layer is a layer in the atmosphere that serves to protect the Earth from deadly solar radiation. It lets the rays of the sun come through (mostly harmless), but also has the effect of warming the planet by trapping the gases that rise from the warming effect.