The three-body problem is a mathematical problem that deals with the motion of three point masses in space subject to Newton's law of universal gravitation.