In the greenhouse effect, the Earth's atmosphere<span> acts </span>like<span> greenhouse gases that warms the earth. ... </span>Certain gases in the atmosphere<span>, </span>like carbon dioxide<span>, </span>nitrous oxide, and methane<span>, </span>absorb heat and prevent it from escaping into space<span>.</span>