Volcanoes occur primarily at plate boundaries where tectonic plates are moving apart (divergent boundaries), moving together (convergent boundaries), or where hotspots exist in the mantle. At divergent boundaries like oceanic ridges, volcanoes form as new crust is created by magma upwelling from the mantle. At convergent boundaries, volcanoes occur in places like oceanic trenches where one plate subducts beneath another, and in volcanic island arcs which form over subduction zones. Hotspots are also locations for volcanism unrelated to plate boundaries.