It is called Nuclear fusion. Stars are controlled by atomic combination in their centers, generally changing over hydrogen into helium. The generation of new components by means of atomic responses is called nucleosynthesis. A star's mass figures out what another kind of nucleosynthesis happens in its center.