After the Earth's surface had cooled to a temperature below the boiling point of water, rain began to fall—and continued to fall for centuries. As the water drained into the great hollows in the Earth's surface, the primeval ocean came into existence. The forces of gravity prevented the water from leaving the planet.