It is a solidified frothy lava, created when highly-heated, pressured molten rock is shot out from a volcano. Its light weight is due to air spaces, which are caused by fast cooling and loss of pressure. The loss of pressure makes bubbles by lowering the boiling point of the lava (like the bubble-creation when a carbonated drink is opened). The cooling then freezes the bubbles in the matrix.