Obsidian is a naturally occurring volcanic glass formed as an extrusive igneous rock. It is produced when felsic lava extruded from a volcano cools rapidly with minimum crystal growth
It is a metamorphic magnesium rich rock because it is composed of the mineral talc