Thinned or fractured crust allows magma to rise to the surface as lava. Most magma doesn't reach the surface but heats large regions of underground rock.