From Theia with Love
The current leading theory on the formation of the Moon is the so called “Giant Impact Theory”, where Earth collided with another planet, Theia. This collision caused both planets to splatter apart into clumps of gas, magma, and other chemicals before reforming as the now known Earth and Moon.
Source: one