Vesicular texture is a
volcanic rock texture characterized by a rock being pitted with many cavities (known as vesicles) at its surface and inside. This texture is common in
aphanitic, or glassy,
igneous rocks that have come to the surface of the earth, a process known as
Extrusion. As magma rises to the surface the pressure on it decreases. When this happens gasses dissolved in the magma are able to come out of solution, forming gas bubbles (the cavities) inside it. When the magma finally reaches the surface as lava and cools, the rock solidifies around the gas bubbles and traps them inside, preserving them as holes filled with gas called vesicles.