Volcanoes are vents in the Earth's crust where magma forces its way to the surface, expelling ash and gases. Magma forms deep underground due to heat and pressure melting rock. It is less dense than the surrounding rock so rises toward the surface. Volcanoes form at divergent plate boundaries as plates move apart and magma rises, at convergent boundaries as colliding plates push magma through cracks, and above hot spots from stationary pools of underground magma.