From Glossary of Meteorology
Those gases, such as water vapor, carbon dioxide, ozone, methane, nitrous oxide, and chlorofluorocarbons, that are fairly transparent to the short wavelengths of solar radiation but efficient at absorbing the longer wavelengths of the infrared radiation emitted by the earth and atmosphere.
The trapping of heat by these gases controls the earth's surface temperature despite their presence in only trace concentrations in the atmosphere. Anthropogenic emissions are important additional sources for all except water vapor. Water vapor, the most important greenhouse gas, is thought to increase in concentration in response to increased concentrations of the other greenhouse gases as a result of feedbacks in the climate system.