Celestial mechanics is the branch of astronomy that deals with the motions and gravitational interactions of celestial bodies. It provides the mathematical framework for predicting the positions and movements of planets, moons, and other astronomical objects in space.