Volcanoes are openings, or vents, where lava, small rock fragments called tephra, and steam reach Earth's surface. Eruptions can last days, months or even years.
Magma forms many tens of miles below the ground. Because it is lighter than the surrounding solid rock, it is pushed upward by buoyancy, helped by pressure from the gas within it. It forces its way up and, if it finds weak areas in the crust, erupts.
A volcano's vent connects to one or more storage areas of molten or partially molten rock. That connection to fresh magma is why the same volcano can erupt again and again in the same place.
