When a divergent plate occurs, the land pulls apart from itself, and it creates a space that allows magma to flow through, and when that magma flows out, it's metal point in the direction of the magnetic atmosphere and when it hardens its locked in place.