Answer:
As they move away from each other the force makes it leave a gap between them. And the convection currents push up a lot of magma towards the surface. The magma cools of very quickly in the water. Forming rocks constantly, rocks that little by little start to make a big mass, that eventually turns into an underwater mountain, or rather a mid-ocean ridge.
(Hope this helps) Sky