The atmosphere is a protective layer of gasses that shelters all life on Earth, keeping temperatures within a relatively small range and blocking out harmful rays of sunlight. The atmosphere has five different layers that are determined by the changes in temperature that happen with increasing altitude.