Vesicles are cavities or holes in the rock that form when gases dissolved in the magma or lava escape during the cooling and solidification process.