Having received permission to make the pilgrimage to Mecca, he reached Cairo, where he was presented to the sultan, al-Malik udh-Dhahir Barkuk, who insisted on his remaining there, and in the year 1384 made him grand cadi of the Malikite rite for Cairo.
The chief tomb mosques are those of Sultan Barkuk, with two domes and two minarets, completed A.D.
The mosque of sultan Hasan, below the citadel, those of Muayyad and Kalaun, with the Barkukiya and the mosque of Barkuk in the cemetery of Kait Bey, are instances of the second and more matured style of the period.
An insurrection in Syria which spread to Egypt presently caused the fall of Ibek, and led to the occupation of the highest posts by the Circassian freedmen Berekeh and Barkuk, of whom the latter ere long succeeded in ousting the former and usurping the sultans place; on the 19th of May 1381, when the sultan All died, his place was given to an infant brother I~IjjI, but on the 26th of November 1382, Barkuk set this child aside and had himself proclaimed sultan (with the title Malik al-Zdhir), thereby ending the BahrI dynasty and commencing that of the Circassians.
Haul was restored, when on the 1st of June 1389 Cairo was taken by Yelbogha, governor of Damascus, and Barkuk expelled; I~Ijji reigned at first under the guardianship of Yelbogha, who was then overthrown by Mintash; Barkak, who had been relegated to Kerak, succeeded in again.
(7) Period of Burji Mamelukes.BarkUk presently entered into relations with the Ottoman sultan Bayezid I., and by slaying an envoy of Timur incurred the displeasure of the worldconqueror; and in 1394 led an army into Syria with the view of restoring, the Jelairid Ilkhan Abmad to Bagdad (as Barkks vassal), and meeting the Mongol invasion.
According to the custom that had so often proved disastrous, a young son of Barkuk, Faraj, then aged thirteen, was appointed sultan under the guardianship of two amirs.
By 1393 he had conquered northern Persia and Armenia, Bagdad, Mesopotamia, Diarbekr and Van, and Ahmad fled to Egypt, where he was received by Barkuk (Barquq) the Mameluke sultan.
Barkuk, who had already excited the enmity of Timur by slaying one of his envoys, espoused Ahmads cause, and restored him to Bagdad after Timurs return to his normal capital Samarkand.
His nephew Shah Walad reigned for a few months only and the throne was occupied by his widow Tandu, formerly wife of Barkuk, who ruled over Basra, Wasit and Shuster till 1416, paying allegiance to Shah Rukh, the second Timurid ruler.