As you can see this Igneous rock was formed from a volcano and how it was formed was by it either being Intrusive, which means it was cooled on the inside of the volcano, or it could be Extrusive, which means it is cooled on the outside of the volcano. One way you can think of a rock is Granite and granite can be formed by intrusive and extrusive.