If it is underground it is magma, if it is on the surface it is lava
lava
igneous
Obsidian
By weathering and being naturally cemented.