What are the two major forces that act on a star?
Pressure and gravity. Pressure due to fusion reactions pushes outwards. Gravity pulls inwards to keep the star in equilibrium.
The mass of star causes gravity which pulls inwards.
Pressure and temperature created by fusion of hydrogen to helium push it outwards.