Hydrostatic equilibrium happens when the pull of gravity is balanced by a pressure gradient which creates a pressure-gradient force in the other direction. The balance of these two forces is known as the hydrostatic balance. It flattens the surface of undisturbed liquids.