At low temperatures (<750 °C at moderate to high crustal pressures), the production of suffi cient melt to reach the melt connectivity transition (~7 vol%), enabling melt drainage, requires an infl ux of aqueous fl uid along structurally controlled pathways or recycling of fl uid via migration of melt and exsolution during crystallization. At higher temperatures, melting occurs by fl uid-absent reactions, particularly hydrate-breakdown reactions involving micas and/or amphibole in the presence of quartz and feldspar. These reactions produce 20-70 vol%, melt according to protolith composition, at temperatures up to 1000 °C. Calculated phase diagrams for pelite are used to illustrate the mineralogical controls on melt production and the consequences of different clockwise pressure-temperature (P-T) paths on melt composition. Preservation of peritectic minerals in residual granulites requires that most of the melt produced was extracted, implying a fl ux of melt through the suprasolidus crust, although some may be trapped during transport, as recorded by composite migmatitegranite complexes. Peritectic minerals may be entrained during melt drainage, consistent with observations from leucosomes in migmatites, and dissolution of these minerals during ascent may be important in the evolution of some crustal magmas. Since siliceous melt wets grains, suprasolidus crust may become porous at only a few volume % melt, as evidenced by microstructures in residual migmatites in which quartz or feldspar pseudomorphs form after melt fi lms and pockets. With increasing melt volume and decreasing effective pressure, assuming the residue is able to deform and compact, the source becomes permeable at the melt connectivity transition. At this threshold, a change from distributed shear-enhanced compaction to localized dilatant shear failure enables melt segregation. The result is a highly permeable vein network that allows transfer of melt to ascent conduits at the initiation of a melt-extraction event. Melt is drained from the anatectic zone via several extraction events, consistent with evidence for incremental construction of plutons from multiple batches of magma. Buoyancy-driven magma ascent occurs via dikes in fractures or via high-permeability zones controlled by tectonic fabrics; the way in which these features relate to compaction and the generation of porosity waves is discussed. Emplacement of laccoliths (horizontal tabular intrusions) and wedge-shaped plutons occurs around the ductile-to-brittle transition zone, whereas steep tabular sheeted and blobby plutons represent back freezing of melt in the ascent conduit or lateral expansion localized by instabilities in the magma-wallrock system, respectively.