Gravity is the fundamental force that governs the motion of celestial bodies. The law of universal gravitation, formulated by Isaac Newton, states that every mass attracts every other mass with a force proportional to the product of their masses and inversely proportional to the square of the distance between their centers. This is crucial in understanding orbital mechanics and the structure of galaxies.