The ongoing theory supported by the scientific community, the "Giant Impact" theory suggests that the moon formed when an object smashed into early Earth. Like the other planets, Earth formed from the leftover cloud of dust and gas orbiting the young sun... hope it helps