The magma has to crystalize...
Gas must form in the vent of a valcano
Magma with high silica content is most likely to quench and congeal quickly to form a natural glass, such as obsidian. This rapid cooling prevents the formation of mineral crystals and results in a homogeneous, amorphous structure characteristic of glass.
Lava is simply magma that reaches the surface of the earth. If a magma flow never is emergent while it is still in liquid form, it cannot be termed lava. An example is a volcanic stock or a laccolith that remains beneath the surface entirely.
Magma needs to cool and solidify to form a rock. This process can happen underground, resulting in intrusive rocks, or at the surface, leading to extrusive rocks. The rate of cooling and the mineral composition of the magma will determine the type of rock that forms.
The lava would form pillow basalts.
When magma cools, it can solidify into different types of igneous rock depending on the cooling rate. Slow cooling can form coarse-grained rocks like granite, while rapid cooling can form fine-grained rocks like basalt. If the magma cools very quickly at the Earth's surface, it can solidify into volcanic glass like obsidian.
They form from the extremely rapid cooling of lava or magma. The quick cooling does not allow time for the crystallization of minerals, resulting in the formation of a natural glass.
by magma
As magma cools, elements combine to form minerals.
Volcanic activity will produce igneous rock.
Volcanoes form when magma from beneath the Earth's surface rises and erupts through a vent or opening in the crust. This can happen due to tectonic plate movements, hotspots in the mantle, or pressure buildup from magma chambers. The explosive release of gas, ash, and lava during an eruption is what we see as a volcanic event.
Volcanic glass is the amorphous (uncrystallized) product of rapidly cooling magma.