Extrusive rock forms when molten lava erupts onto the Earth's surface and cools quickly. This rapid solidification often leads to fine-grained or glassy textures, as crystals have little time to grow. It is a fundamental type of igneous rock, shaping landscapes after volcanic events.