Complex sentence: For planets and moons, equilibrium is reached when the compression due to gravity is balanced by a pressure gradient in the opposite direction due to the strength of the material, at which point gravitational compression ceases.
Split into simpler sentences: For planets and moons, equilibrium is reached when the compression is balanced by a pressure gradient. This pressure gradient is in the opposite direction due to the strength of the material, at which point gravitational compression ceases.