The type of rock that is formed from cooled lava from a volcano is called igneous rock. There are two main types of igneous rocks: intrusive and extrusive. When lava cools quickly on the surface, it forms extrusive igneous rock, such as basalt or pumice. When magma cools slowly beneath the Earth's surface, it forms intrusive igneous rock, such as granite or gabbro.