Mu Ying was one of the few capable generals who survived the massacre of Emperor Zhu Yuanzhang. He and his descendants guarded Yunnan, a province near Vietnam, until the end of the Ming dynasty. He and other Muslim Generals loyal to the Ming dynasty led Muslim troops to defeat Mongol and Muslims loyal to the Yuan dynasty during the Ming conquest of Yunnan.