The correct answer is: Greenhouse gases absorb the sun's energy, slowing or preventing heat from escaping into space.
The greenhouse effect occurs when greenhouse gases in the Earth's atmosphere trap heat, allowing sunlight to enter but preventing some of the heat that the sunlight brings from leaving the atmosphere, thereby warming the planet.