There are many theories about how the Moon formed.
The current favorite says that a huge asteroid, maybe the same one that is thought to have tilted Earth’s axis, hit Earth, throwing off a mass of debris into a broken ring around the planet.
Over time, the debris coalesced, creating the Moon.
At first the Moon was much closer to Earth, but it gradually settled in the orbit it has today.
The Moon is the only natural satellite the earth has and is also the fifth largest satellite in the Solar System.
It is currently believed that the moon formed some 4.5 billion years ago, around the same time the Earth was created.