What kind of rock is formed when lava leaves a volcano and cools

When lava leaves a volcano and cools, it forms an igneous rock called volcanic rock or extrusive igneous rock. The exact type of volcanic rock formed depends on the composition of the lava. Common types of volcanic rock include basalt, andesite, and rhyolite.

The kind of rock that is formed when lava leaves a volcano and cools is called igneous rock.