Rock formed as a direct result of a volcano (i.e. through the solidifying of magma).See also Igneous rock.