1 Stars produce heavier elements than hydrogen and helium through nuclear fusion in their cores, starting with the fusion of protons into deuterons and progressing to helium formation.
“These fusion reactions begin with two protons fusing, followed by subsequent beta decay, to get a proton and a neutron, and we call this a deuteron, which is a nucleus of heavy hydrogen.”