Hydrostatic equilibrium is the energy balance between two forces at the stars: the inward force of gravity (<span>due to the </span>mass<span> of the star) </span>and the outward gas pressure (due to the energy release from nuclear reactions in the core of the star). Hydrostatic equilibrium is important because it holds the star together.