The greenhouse effect happens when certain gases—known as greenhouse gases—collect in Earth's atmosphere These gases, which occur naturally in the atmosphere, include carbon dioxide, methane, nitrogen oxide, and fluorinated gases sometimes known as