When rock from the mantle melts, moves to the surface through the crust, and releases pent-up gases, volcanoes erupt. Extremely high temperature and pressure cause the rock to melt and become liquid rock or magma. When a large body of magma has formed, it rises thorugh the denser rock layers toward Earth's surface