The ozone layer absorbs harmful ultraviolet rays emitted by the sun and prevents them from reaching the surface of the earth. If excess ultraviolet rays reach the surface of the earth, it can kill plants and animals and prove very harmful to life on earth.