The Sun, like other stars, generates energy through nuclear fusion. The primary process occurring in the Sun's core is the fusion of hydrogen nuclei into helium nuclei. Hydrogen serves as the main fuel for this process, converting mass into a tremendous amount of energy according to Einstein's mass- energy equivalence (E=mc²).