https://www.google.com/search?q=google+images&source=lnms&tbm=isch&sa=X&ved=0ahUKEwjln-yx5cfTAhWCYiYKHVDaACgQ_AUICigB&biw=1260&bih=655&dpr=2#tbs=sur:fc&tbm=isch&q=volcanoes&imgrc=-gBVwBbd1RdtCM:

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.