The correct answer is:
A. It was formed when lava cooled very quickly.
Obsidian is a type of volcanic glass that forms when lava cools rapidly, preventing the formation of crystal structures that are typical in other igneous rocks. This rapid cooling gives obsidian its smooth, shiny surface.