I. Molecular mechanism of the greenhouse effect

A greenhouse gas produces the greenhouse effect because it has the ability to absorb infrared radiation (a form of thermal radiation). A greenhouse gas's ability to absorb infrared depends on its own molecular structure. Within a molecule there are nonpolar covalent bonds and polar covalent bonds; molecules are also classified as polar or nonpolar. The strength of molecular polarity is expressed by the dipole moment μ. Only vibrations that involve a change in dipole moment can give rise to an observable infrared absorption spectrum, so molecules that possess a dipole moment are infrared-active; molecular vibrations with Δμ = 0 that produce no infrared absorption are infrared-inactive.

II. Infrared-active molecules and dipole moment

In other words, greenhouse gases are infrared-active molecules that possess a dipole moment, which is precisely why they can absorb infrared radiation and retain infrared thermal energy.