The ocean formed from the escape of water vapor and other gases from the molten rocks of the Earth to the atmosphere surrounding the cooling planet.
Moon formed during a collision between
the Earth and another small planet, about
the size of Mars. The debris from this
impact collected in an orbit around Earth to
form the Moon.