The craters are formed when an object crashes into the moon at a high enough speed. read more
The few craters within the maria today occurred after the maria formed, when the heat from radioactive decay was no longer sufficient to produce lava flows. During heavy bombardment, the largest crater impacts were violent enough to fracture the moon's lithosphere. read more