Atmospheric gases like carbon dioxide, methane, nitrous oxide (N2O), water vapour, and chlorofluorocarbons are capable of trapping the out-going infrared radiation from the earth’s surface thereby causing greenhouse effect.
Hence these gases are known as greenhouse gases and the heating effect is known as greenhouse effect.