How Do Volcanoes Form?
An eruption is when bubbles of gas separate from the liquid and force the liquid out of the volcano. After the lava erupts from the volcano, it cools and hardens and becomes rock.
To answer the question, it may help you to look at the picture of lava flowing out of the volcano!