Wel, in simple terms ... the sun heats the Earth’s surface and the Earth radiates energy back out into Space. Some of the radiation gets trapped in the atmosphere by greenhouse gases. This trapped radiation warms the atmosphere and some of it goes back down to the Earth, making it hotter than normal. This is the greenhouse effect.