Earth would be an icy wasteland if greenhouse gases were not present. Greenhouse gases keep our planet livable by retaining some of the Earth's heat energy, preventing it from escaping into space. The greenhouse effect refers to the trapping of heat.