As the molten rock emerges from the Earth the pressure upon it is reduced and the dissolved gas starts to escape in the form of bubbles. If the molten rock solidifies before the gas has escaped the bubbles become small rounded or elongated cavities in the rock. This dark-colored igneous rock with the trapped bubbles is known as scoria.