What is the greenhouse effect?
The greenhouse effect is the process by which the sun's energy gets trapped in a planet's atmosphere and heat's the planet's surface. The energy gets trapped due to the planet's atmosphere having a higher transparency to visible radiation from the sun than it does to infrared radiation that gets emitted after bouncing off of the planet's surface.