Diorites may be associated with either granite or gabbro intrusions, into which they may subtly merge. Diorite results from the partial melting of a mafic rock above a subduction zone. It is commonly produced in volcanic arcs, and in cordilleran mountain building, such as in the Andes Mountains, as large batholiths. The extrusive volcanic equivalent rock type is andesite.