The mamluks ('the owned') were the ruling class formed of slave-origin soldiers — an institutional invention unique to the Islamic world. In the ninth century the Abbasid caliphs began recruiting Turkic slave guards; Saladin's Ayyubid line (the Kurdish line) continued them, and in 1250 the guard took power and founded the Mamluk Sultanate in Cairo — two hundred sixty-seven years. The system's rules: non-Muslim slave boys entered the barracks for harsh training, converting and rising by grade, and on a master's death his assets and power passed among the 'barrack-brothers' — no father-to-son succession, office circulating inside the corps, sultans made and unmade by the strong. The corps' record was blazing: at the Battle of Ain Jalut in 1260 Baybars turned the Mongols out of Western Asia — the first decisive defeat of the great conquest; in 1291 the Crusaders were expelled from Acre and the coast wholly recovered; the holy places guarded, the madrasas raised — Ibn Khaldun held office at its court. The Ottomans destroyed the state in 1517, yet the Mamluk beys governed Egypt on until 1811, when Muhammad Ali's banquet massacre ended them.