This force is gravity's counterpart in a star. The gravity strives to compress the star, while the internal pressure strives to expand the star. Internal pressure is essential for a star to remain in equilibrium.