The Ming army pursued the ex-Yuan Mongol forces into Mongolia in 1372, but were defeated by the latter under Biligtü Khan Ayushiridara and his general Köke Temür. They tried again in 1380, ultimately winning a decisive victory over the Northern Yuan in 1388. About 70,000 Mongols were taken prisoner, and Karakorum (the Northern Yuan capital) was sacked. Eight years later, the Northern Yuan throne was taken over by Biligtü Khan Ayushiridara, a descendant of Ariq Böke, instead of the descendants of Kublai Khan. The following centuries saw a succession of Genghisid rulers, many of whom were mere figureheads put on the throne by those warlords who happened to be the most powerful. Periods of conflict with the Ming dynasty intermingled with periods of peaceful relations with border trade. In 1402, Örüg Temür Khan (Guilichi) abolished the name Great Yuan; he was however defeated by Öljei Temür Khan (Bunyashiri), protege of Tamerlane (Timur Barulas) in 1403. A few decades later the new khan Batumongke (1464–1517/43) took the title Dayan meaning "Da Yuan" or "Great Yuan". and reunited the Mongols. His successors continued to rule until the submission to the Qing dynasty in the 17th century.
