Task: Text Categorization
Input (English): These people were defeated at the battle of Third Battle of Homs, after winning the first two battles of that same name. Tamerlane became hostile to Barkuk, the founder of one branch of this dynasty. Tuman Bey, the last sultan of this dynasty, suffered a stunning defeat at the battle of Ridyana. Earlier, they ended the expansion at the Ilkhanate when Kitquba was defeated at the Battle of Ayn Jalut by Baybars. In 1811, Muhammad Ali invited a few hundred of them to his court for a celebration but ambushed and slaughtered them on the way to his palace. They overthrew their Ayuubid masters after Aybak was killed and Qutuz took power, establishing the Bahri dynasty. For ten points, name this military caste of Islamic slaves who ruled Egypt from 1250 to 1517.
Output (English): History