 This is called "detrital remanent magnetization".Thermoremanent magnetization is the main source of the magnetic anomalies around mid-ocean ridges.As the seafloor spreads, magma wells up from the mantle, cools to form new basaltic crust on both sides of the ridge, and is carried away from it by seafloor spreading.