Step-by-step explanation:
The greenhouse effect works much the same way on Earth. Gases in the atmosphere, such as carbon dioxide, trap heat similar to the glass roof of a greenhouse. These heat-trapping gases are called greenhouse gases. ... At night, Earth's surface cools, releasing heat back into the air.