Volcanic rock (often shortened to volcanics in scientific contexts) is a rock formed from lava erupted from a volcano. ... Volcanic rocks and sediment that form from magma erupted into the air are called "volcaniclastics," and these are technically sedimentary rocks.