Near plate boundaries, molten rock (magma) rises to the surface from as deep as tens of kilometers and erupts to form volcanoes.
(molten rock; rises; to the surface; from as deep)
molten rock
rises
to the surface from as deep