Stellar nucleosynthesis
More massive stars use the CNO cycle to make helium-4. It starts with a carbon-12 nucleus. Four protons hit it, one at a time. Two of them become neutrons. Then the nucleus splits apart into a helium-4 nucleus and a carbon-12 nucleus, so the cycle can keep going. Of course, this is only possible if there is already carbon-12 in the star.