In summary, gravity is the force that creates the pressure to fuse atoms, which makes the stars shine. Eventually the temperature is high enough that the star starts fusing hydrogen into helium. When the outward pressure produced by the heating of the gas by fusion energy balances gravity, a stable star is formed.