Answer:
The gravity collapsing the core, increases pressure causing the fusion of hydrogen to helium. The newly formed helium creates outward pressure. The pressure balances the gravitational inward pull. This is the hydrostatic equilibrium and it occurs throughout the main sequence phase.