A Mars-sized object collided with Earth, ejecting material from both objects into space and forming a ring of gas and debris around Earth. Particles in the ring joined together over time to form the Moon, explaining how Earth's natural satellite was formed via the impact theory.