The sun heats Earth. Earth then radiates heat into the Earth atmosphere. If the atmosphere contains more carbon dioxide- and methane molecules more heat will stay within the atmosphere. With less greenhouse gases in the atmosphere more of the heat easily bounces out into space. Illustration: AnnVixen