Some of the envoys were killed and this was the pretext under which an invasion was launched against the regime in Yunnan, then still loyal to the Northern Yuan.
The Ming General Fu Youde led the attack on the Mongol and Muslim forces of the Northern Yuan.
Mu Ying and his Muslim troops were given hereditary status as military garrisons of the Ming dynasty and remained in the province.
In 1382 Lan Yu and Mu Ying's forces attacked and crushed Duan's realm after a fierce battle.
[6] The Ming Generals Lan Yu and Fu Youde castrated 380 captured Mongol and Muslim captives after the war.