Essentially 100% of the energy that fuels the earth comes from the sun. To maintain a constant global average temperature, all of the sun's radiation that enters Earth's atmosphere must eventually be sent back to space. This is achieved through Earth's energy balance.