Nuclear fusion generates the energy that is released by stars. In the great majority of stars, it's the fusion of hydrogen nuclei to form helium nuclei plus energy. In very old stars, the nuclei of heavier elements are fused, forming even heavier ones.