The greenhouse effect is the way in which heat is trapped close to Earth's surface by “greenhouse gases.” These heat-trapping gases can be thought of as a blanket wrapped around Earth, keeping the planet toastier than it would be without them. The greenhouse effect is a process that occurs when energy from a planet's host star goes through its atmosphere and warms the planet's surface, but the atmosphere prevents the heat from returning directly to space, resulting in a warmer planet.