Lava cools to form volcanic rock as well as volcanic glass. Magma can also extrude into Earth's atmosphere as part of a violent volcanic explosion. This magma solidifies in the air to form volcanic rock called tephra. In the atmosphere, tephra is more often called volcanic ash.