Earth’s greenhouse gases trap heat in the atmosphere and warm the planet. The main gases responsible for the greenhouse effect include carbon dioxide, methane, nitrous oxide, and water vapor. In addition to these natural compounds, synthetic fluorinated gases also function as greenhouse gases.