All energy from the sun that reaches Earth is converted to thermal energy or heat. The amount of heat absorbed at the surface varies by location and time due to factors like the sun's angle, cloud cover, Earth's distance from the sun, and greenhouse gases trapping heat in the atmosphere. This trapped heat maintains Earth's temperature through the greenhouse effect, resembling the way a greenhouse warms an environment for plants. Different surfaces like land, water, and air heat up differently via radiation, convection, and conduction.