A volcano erupts violently when pressure builds up inside it and then bursts out. Imagine a soda bottle, if you shake it up and pop the lid off, it sprays all over. A volcano is like that soda bottle. When gas and lava are trapped deep underground, they push really hard until boom! It explodes.