During the Ming conquest of Yunnan, Muslim generals Mu Ying and Lan Yu led Muslim troops loyal to the Ming dynasty against Mongol and Muslim troops loyal to the Yuan dynasty.