The greenhouse effect occurs when certain gases in the Earth's hemisphere (the air around the Earth) entraps infrared radiation (waves coming from the Sun). This makes the planet become warmer, similar to the way it makes a greenhouse (a building where vegetables and other plants are grown) becomes warmer. That is where the whole effect got the name from.