The standard giant-impact hypothesis suggests the Mars-sized body, called Theia, impacted Earth, creating a large debris ring around Earth, which then accreted to form the Moon.
The giant impact hypothesis suggests that the moon was created when a astronomical body around the size of mars struck the earth around 4.5 million years ago.