the sun
Earth is warmed by energy that radiates from the sun. Earth radiates some of the energy back into space. Greenhouse gases GHGs trap much of the re-radiated energy, causing an increase in the temperature of the atmosphere close to the surface.