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
Basalt is a common extrusive igneous rock formed by the rapid cooling of basaltic lava exposed at or very near the surface of Earth