1 Stars generate energy by fusing nuclei in their cores, converting a small fraction of mass into energy via E equals mc squared.
“Therefore, only by colliding nuclei together and fusing them in its ultra-hot core can a star release enough outward energy to counter the effects of gravity relentlessly crushing inward.”