There are many theories on how the Maria on the surface of the Moon were formed, one popular theory is that a Mare is the result of a massive impact with the Moon a long time ago when the Moon had a molten core. After the initial impact the large crater was levelled through molten lava erupting to fill the crater. As the lava cooled it set into the smooth surfaces that are seen on the surface of the Moon today.