The result of water vapor, carbon dioxide and other atmospheric gases trapping radiant (infrared) energy, thereby keeping the Earth’s surface warmer than it would otherwise be. Greenhouse gases within the lower levels of the atmosphere trap this radiation, which would otherwise escape into space, and subsequent re-radiation of some of this energy back to the Earth maintains higher surface temperatures than would occur if the gases were absent.
U.S. Department of Energy