country. Judah Halevi was in Alexandria in 1141, and dedicated some beautiful verses to his fellow resident and friend Aaron Ben-Zion ibn Alamani and his five sons. At Damietta Halevi met his friend, the Spaniard Abu Sa'id ibn Ḥalfon ha-Levi. About 1160 Benjamin of Tudela was in Egypt; he gives a general account of the Jewish communities which he found there. At Cairo there were 2,000 Jews; at Alexandria 3,000, whose head was the French-born R. Phineas b. Meshullam; in the Faiyum there were 20 families; at Damietta 200; at Bilbeis, east of the Nile, 300 persons; and at Damira 700. From Saladin and Maimonides (1169 to 1250) Saladin's war with the Crusaders (1169–93) does not seem to have affected the Jewish population with communal struggle. A Karaite doctor, Abu al-Bayyan al-Mudawwar (d. 1184), who had been physician to the last Fatimid, treated Saladin also. Abu al-Ma'ali, brother-in-law of Maimonides, was likewise in his service. In 1166 Maimonides went to Egypt and settled in Fostat, where he gained much renown as a physician, practising in the family of Saladin and in that of his vizier al-Qadi al-Fadil, and Saladin's successors. The title Ra'is al-Umma or al-Millah (Head of the Nation or of the Faith), was bestowed upon him. In Fostat he wrote his Mishneh Torah (1180) and The Guide for the Perplexed, both of which evoked opposition from Jewish scholars. From this place he sent many letters and responsa; and in 1173 he forwarded a request to the North African communities for help to secure the release of a number of captives. The original of the last document has been preserved. He caused the Karaites to be removed from the court. Mamelukes (1250 to 1517) In the mid thirteenth century the Ayyubid empire was plagued with famine, disease, and conflict; a great period of upheaval would see the Golden Islamic Period come to a violent end. Foreign powers began to encircle the Islamic World as the French endeavored on the 7th crusade in 1248 and the Mongol campaigns in the east rapidly making its way into the heartland of Islam. These internal and external pressure weakened the Ayyubid empire. In 1250 following the death of Sultan Al Alih Ayyub, slave soldiers, Mamluks, rose up and slaughtered all the Ayyubid heirs and the Mamluk leader Emir Aybak became the new sultan. The Mamluks were quick to consolidate power using a strong