Final answer:
The Earth's relatively constant temperature is a result of the greenhouse effect, which is a natural phenomenon that balances the incoming solar radiation and the energy radiated from the Earth.
Step-by-step explanation:
The relatively constant temperature of the Earth is a result of the energy balance between the incoming solar radiation and the energy radiated from the Earth. Most of the infrared radiation emitted from the Earth is absorbed by CO₂ and H₂O in the atmosphere and then re-radiated back to the Earth or into outer space. This process, known as the greenhouse effect, is responsible for keeping the temperature on Earth suitable for life.