The plates spread at mid-ocean ridges (they are divergent plate boundaries) which allows magma to rise through the weakness between the plates. The magma then emerges as lava from the boundary and cools, creating a new crust.