During the day, the planet gets warm as it absorbs energy from the sun. Through a process called the greenhouse effect, carbon dioxide and other greenhouse gases absorb some of the infrared radiation the earth releases as it cools. This heat in theatmosphere causes the earth's surface to warm as well