New sultans were always chosen from the sons of the previous sultan. He kept a friendly relationship with the Mamluk Sultan and his shadow Caliph in Cairo. The Ottoman Empire conquered Egypt, hanging the last Mamluk Sultan in Cairo. An educated sultan, Firuz Shah left a memoir. An educated sultan, Firoz Shah left a memoir. Napoleon conquered Egypt in an attempt to link with Tipu Sultan. The French were allies of Tipu Sultan. Saif bin Sultan occupied Bahrain in 1700. The dynasty is named after its first sultan Idris I. To capture Zanzibar Saif bin Sultan, the Imam of Oman, pressed down the Swahili Coast. The Ottoman sultan, Bayezid I, then invaded Syria. They were powerful enough to reject the military reforms proposed by Sultan Selim III. They acted as reserve cavalry and bodyguards of Ottoman sultan and vezirs. He conferred with representatives of Sultan Abdelaziz of Morocco. In 1545, at Konya, Selim married Nurbanu Sultan, whose background is disputed.