The greenhouse effect occurs when certain gases in the Earth's atmosphere (the air around the Earth) infrared radiation. This makes the planet become warmer, similar to the way it makes a greenhouse become warmer.