Where does the ultimate source of all energy come from

The ultimate source of all energy on Earth is the sun. The sun's energy is derived from nuclear fusion reactions that occur in its core, converting hydrogen into helium and releasing massive amounts of energy in the process. This energy is then emitted in the form of sunlight and other electromagnetic radiation, which provides the energy needed for life on Earth.