People have come up with several ideas about how the Moon formed.
Most scientists believe that a small planet-like body smacked into Earth about 4.5 billion years ago. Our planet was still young then, just 100 million years old! The crash threw pieces of debris into orbit. Those pieces joined together and became the Moon. Both Earth and the Moon spent the next 700 million years being hit by giant meteorites. Earth’s scars from that time have mostly healed. That’s because of the weather, erosion, and plant life on Earth. But the Moon still has big pockmarks, called craters.
The last part of the Moon’s formation took place over the next 2 billion years. Molten lava seeped up from below the surface. It formed dark areas called maria, or seas. As this process slowed down, the Moon’s surface hardened into the grayish-green crust we see today.