greenhouse-gases.jpg

Greenhouse gases let visible light from the sun in, which heats the Earth, but trap some of the infrared light as it radiates away into space. This trapping of heat is a bit like a greenhouse, hence the name, although actual greenhouses trap heat by preventing convection, or hot air rising away, which is quite a different effect.