With the natural greenhouse effect, the energy budget is balanced as thermal radiation is re-radiated towards the ground, trapping thermal energy and warming the Earth.
Energy from the sun heats Earth's surface, warms the atmosphere, provides energy for photosynthesis, causes evaporation, drives the weather and water cycles, and powers the ocean currents.