After Hui Yuan was defeated, he died in Yingchang in the third year of Hongwu in Ming Dynasty (1370), and after Yuan Zhaozong ascended the throne, he fled to Mobei and Lin in the north. Ming captured Shengfeng in Gansu. However, Timur, the general of the Yuan Army, still fought Xu Da and others in Mobei many times. Ming Taizu wrote many times to possess him, but Timur, a rich man, never paid attention to him and was called "a contemporary" by Zhu Yuanzhang. In April of the 11th year of Hongwu in Ming Dynasty (1378), Yuan Zhaozong died, and the succeeded Emperor Tianyuan continued to confront the Ming Dynasty and repeatedly violated the Ming Dynasty. In the fourth year of Hongwu in Ming Dynasty (137 1), Liu Yi of Yuan Dynasty surrendered to Ming Dynasty in Liaoyang, and the Ming Dynasty occupied southern Liaoning. However, the rest of Northeast China is still controlled by the Yuan Dynasty Taiwei Naha, and 200,000 troops are stationed in Jinshan (now the south bank of Liaohe River north of Jinshanbao in Changtu County, Liaoning Province). He kept herding the rich, confronted the Ming army for more than ten years, and was repeatedly called up by the Ming Dynasty. Ming Taizu sent Tang He and others to lead the troops to pacify Sichuan Ming Yu Zhen and failed to surrender to Liang Wang. In the 14th year of Ming Hongwu (138 1 year), the Ming army invaded Yunnan, and in the 15th year of Ming Hongwu (1382), Liang Wang committed suicide by escaping from Kunming, and then the Ming army conquered Dali and settled in Yunnan.
In the 20th year of Hongwu in Ming Dynasty (1387), Sheng Feng, Fu Youde, Lan Yu and others launched the fifth Northern Expedition, with the goal of capturing the Jinshan Mountain in Naha. After many wars, in the same year 10, Naha surrendered to Aquamarine, and the Ming Dynasty occupied the Northeast. Liang Wang of the Yuan Dynasty, who was guarding Yunnan, continued to be loyal to Zara Valmy after he returned to the grassland in Yuan Ting. In order to completely destroy the forces of the Northern Yuan Dynasty, in May of the 21st year of Ming Hongwu (1388), Ming Taizu ordered Aquamarine to lead 150,000 Ming troops to launch the sixth Northern Expedition. The Ming army crossed the Gobi to the fishing sea (now Lake Bell on the border between China and Mongolia), defeated the Yuan army and captured more than 80,000 people. Yuan Di Tianyuan and the eldest son Tianbao slave escaped, but the younger son Baonu was captured by the Ming army. At this point, the situation in the North Yuan country declined greatly. In the twenty-first year of Hongwu in Ming Dynasty (1388), Tianyuan in Yuan Di was killed by the descendants of Alibaba Buge, and Beiyuan no longer used the year number.
In the fourth year of Wenjian in Ming Dynasty (1402), after the ghost killed Yuan Di Kuntimur, he changed his name to Tatar and died in Beiyuan.