Task: Text Categorization
Input (English): After allying with the khan of Chagatai and taking part in campaigns in Transoxania, this ruler would lose a "muddy battle" against Ilyas Khodja, despite fighting alongside brother-in-law Husayn of Balkh. Becoming the head of the Barlas upon the death of Tughluk, this man annihilated Tokhtamysh and the Golden Horde at the Battle of the Terek River before he overwhelmed Sultan Mehmud's forces in seizing the Delhi Sultanate. Prior to his death and ultimate succession by Shah Rukh while planning an invasion of China, he defeated the Turks at the Battle of Ankara and captured Bayezid I. FTP, name this Mongol military leader who ruled in Central Asia during the 14th century from his capital of Samarkand.
Output (English): History