AbstractGneisses with anatectic characteristics from the Liansan island in the Sulu UHPM (ultra‐high pressure metamorphic) belt were studied for petrography, titanite U‐Pb dating and mineral geochemistry. Three origins of garnets are distinguished: metamorphic garnet, peritectic garnet and anatectic garnet, which are formed in the stages of peak metamorphism, retrograde anatexis and melt crystallization, respectively. The euhedral titanite has a high content of REE and high Th/U ratios, which is interpreted as indicating that it was newly‐formed from an anatectic melt. The LA‐ICP‐MS titanite U‐Pb dating yields 214–217 Ma ages for the titanite (melt) crystallization. The distribution of trace elements varies in response to the different host minerals at different stages. At the peak metamorphic stage, Y and HREE are mainly hosted by garnet, Ba and Rb by phengite, Sr, Nb, Ta, Pb, Th, U and LREE by allanite and Y, U and HREE by zircon. During partial melting, Y, Pb, Th, U and REE are released into the melt, which causes a dramatic decline of these element contents in the retrograde minerals. Finally, titanite absorbs most of the Nb, U, LREE and HREE from the melt. Therefore, the different stages of metamorphism have different mineral assemblages, which host different trace elements.