A new study suggests rare earth elements form in magma above ancient subduction zones, as that magma reacts with substances that are released when one tectonic plate dives beneath another.