Answer:
The current accepted theory is known as the Giant Impact Hypothesis, where according to this NASA webpage "Origin of the Earth and Moon" (Taylor) a Mars sized object collided into the early Earth.
The prevailing theory supported by the scientific community, the giant impact hypothesis 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.