The phenomenon of trapping the Sun's heat by gases in the Earth's atmosphere is called the greenhouse effect.