The dark, flat areas on the Moon are called maria, which is Latin for "seas".
While they appear dark from Earth, they are actually vast plains of solidified volcanic basalt. They were formed billions of years ago by massive volcanic eruptions that flooded the lunar surface with lava.