Volcanic plugs are formed when lava solidifies in
the pipe of an extinct volcano. Over time, the volcanic cone made up of less resistant rocks wears away, leaving behind the solidified volcanic plug.
The Devil's Tower in Wyoming, USA is a great example of a volcanic plug.