Igneous rock
When magma comes out onto the surface of the Earth, it is called lava. Lava cools down to form rocks such as tuff and basalt. Intrusive rocks are made when the magma slowly cools to form rocks under the surface. Granite is one of these.