AbstractPartial melting has been shown to be an important mechanism for intracrustal differentiation and granite petrogenesis. However, a series of compositional differences between granitic melt from experiments and natural granites indicate that the processes of crustal differentiation are complex. To shed light on factors that control the processes of crustal differentiation, and then the compositions of granitic magma, a combined study of petrology and geochemistry was carried out for granites (in the forms of granitic veins and parautochthonous granite) from a granulite terrane in the Tongbai orogen, China. These granites are characterized by high SiO2 (>72 wt%) and low FeO and MgO (<4 wt%) with low Na2O/K2O ratios (<0.7). Minerals in these granites show variable microstructures and compositions. Phase equilibrium modelling using P–T pseudosections shows that neither anatectic melts nor fractionated melts match the compositions of the target granites, challenging the conventional paradigm that granites are the crystallized product of pure granitic melts. Based on the microstructural features of minerals in the granites, and a comparison of their compositions with crystallized minerals from anatectic melts and minerals in granulites, the minerals in these granitoids are considered to have three origins. The first is entrained garnets, which show comparable compositions with those in host granulites. The second is early crystallized mineral from melts, which include large plagioclase and K‐feldspar (with high Ca contents) crystals as well as a part of biotite whose compositions can be reproduced by crystallization of the anatectic melts. The compositions of other minerals such as small grained plagioclase, K‐feldspar and anorthoclase in the granites with low Ca contents are not well reconstructed, so they are considered as the third origin of crystallized products of fractionated melts. The results of mass balance calculation show that the compositions of these granites can be produced by mixing between different proportions of crystallized minerals and fractionated melts with variable amounts of entrained minerals. However, the calculated modal proportions of different crystallized minerals (plagioclase, K‐feldspar, biotite and quartz) in the granites are significantly different from those predicted by melt crystallization modelling. Specifically, some rocks have lower modes of biotite and plagioclase, whereas others show lower K‐feldspar modes than those produced by melt crystallization. This indicates that the crystallized minerals would be differentially separated from the primary magmas to form the evolved magmas that produce these granites. Therefore, the crystal entrainment and differential melt‐crystal separation make important contributions to the composition of the target granites. Compared with leucogranites worldwide, the target granites show comparable compositions. As such, the leucogranites may form through the crystal fractionation of primary granitic magmas at different extents in addition to variable degrees of partial melting.