The Sun's energy is generated through nuclear fusion reactions occurring in its core. Specifically, hydrogen nuclei (protons) fuse to form helium nuclei, releasing an enormous amount of energy in the process.