Volcanic rock is a type of igneous rock that forms from the rapid cooling and solidification of lava at or near the Earth's surface. These rocks can provide valuable information about the volcanic activity and magma composition from which they originated, as their texture and mineral content are influenced by the conditions of eruption and cooling.