The ozone layer is vital to life on Earth because