Ion-absorption rare earth element (REE) deposits in South China are the world’s most important source of heavy REEs (HREEs). These deposits were formed by the weathering of granitic rocks whose formation involved primary HREE enrichment. Previous studies have identified the key role of late-stage magmatic evolution, especially the magmatic–hydrothermal transition stage played in HREE enrichment, but the detailed processes need further investigation. Garnet is a common HREE carrier in parent rocks and also a main contributor of these elements in formation of ion-absorption HREE deposits. Here, we investigate textural and compositional variations in garnets from parent rock (muscovite granite) of the Dabu ion-absorption HREE deposit to constrain the primary HREE enrichment of the parent rock during late-stage magmatic evolution. Mass-balance calculations reveal that garnet accounts for ∼67 % of the Y and 64 % of the REEs in the Dabu muscovite granite. The garnets can be classified into three types: i) magmatic garnets (Grt-1A) are intergrown with plagioclase, K-feldspar, and quartz, host both melt and mineral inclusions, and have high REE + Y contents (6488–19,215 ppm); ii) magmatic–hydrothermal garnets (Grt-1B) occur as overgrowths on Grt-1A, host both melt and fluid inclusions, and have intermediate REE + Y contents (2681–8683 ppm); and iii) hydrothermal garnets (Grt-2) are intergranular with quartz and altered biotite, host primary fluid inclusions, and have the lowest REE + Y contents (476–1247 ppm). The texture and composition of the three types of garnet indicate that the magma have undergone a transition from a volatile-undersaturated to a volatile-oversaturated aqueous system. The fluid, from which some REE minerals precipitated, present in the magma system was derived from the magma itself rather than from an external source, as evidenced by the similarity in Nd isotopic composition between the REE minerals and the whole-rock samples. During this transition, the presence of high-HREE garnet prevents the HREE partitioning into refractory minerals (e.g., zircon, REE-bearing phosphate) or extracting from the magma system by the fluid. Our findings show that granites containing high-HREE garnet have high potential for forming ion-absorption HREE deposits and that garnet can reliably record their magmatic evolution.