Greenhouse gases in the atmosphere (including carbon dioxide, water vapour and methane), absorb heat radiated from the Earth. They then release energy in all directions, reducing the amount of heat radiated into space, keeping the Earth warm. This is the greenhouse effect.