There are two main types of igneous rocks: intrusive and extrusive. Intrusive rocks, like granite, form underground when magma cools slowly, allowing large crystals to form. Extrusive rocks, like basalt, form above ground through volcanism, cooling rapidly with fine-grained textures. Igneous rocks differ in their location and rate of cooling, which determines crystal size and texture.