Greenhouse gases absorb and emit some of the outgoing energy radiated from Earth's surface, causing that heat to be retained in the lower atmosphere. As explained above, some greenhouse gases remain in the atmosphere for decades or even centuries, and therefore can affect Earth's energy balance over a long period.