Greenhouse effect
The greenhouse effect is a process by which thermal radiation from a planetary surface is absorbed by atmospheric greenhouse gas
Greenhouse gas
A greenhouse gas is a gas in an atmosphere that absorbs and emits radiation within the thermal infrared range. This process is the fundamental cause of the greenhouse effect. The primary greenhouse gases in the Earth's atmosphere are water vapor, carbon dioxide, methane, nitrous oxide, and ozone...

es, and is re-radiated in all directions. Since part of this re-radiation is back towards the surface, energy is transferred to the surface and the lower atmosphere. As a result, the temperature there is higher than it would be if direct heating by solar radiation were the only warming mechanism.
Solar radiation at the high frequencies of visible light
Light or visible light is electromagnetic radiation that is visible to the human eye, and is responsible for the sense of sight. Visible light has wavelength in a range from about 380 nanometres to about 740 nm, with a frequency range of about 405 THz to 790 THz...

 passes through the atmosphere to warm the planetary surface, which then emits this energy at the lower frequencies of infrared
Infrared light is electromagnetic radiation with a wavelength longer than that of visible light, measured from the nominal edge of visible red light at 0.74 micrometres , and extending conventionally to 300 µm...

 thermal radiation.