The sun generates energy from a process called nuclear fusion. During nuclear fusion, the high pressure and temperature in the sun's core cause nuclei to separate from their electrons. Hydrogen nuclei fuse to form one helium atom. During the fusion process, radiant energy is released.