Under the early Abbasid Caliphs, who ruled from 750-1250 CE, the mosque around the Kaaba was expanded and modified several times. According to travel writers, such as the Ibn Jubayr who saw the Kaaba in 1183 CE, it retained the eighth century Abbasid form for several centuries. From 1269-1517 CE, the Mamluks of Egypt controlled the Hijaz, the highlands in western Arabia where Mecca is located. Sultan Qaitbay, who ruled 1468-96 CE, built a madrasa—a religious school—against one side of the mosque. Under the Ottoman sultans, Süleyman I, who ruled 1520-1566 CE, and Selim II, who ruled 1566-74 CE, the complex was heavily renovated. In 1631 CE, the Kaaba and the surrounding mosque were entirely rebuilt after floods had demolished them in the previous year. This mosque, which is what exists today, is composed of a large open space with colonnades on four sides and with seven minarets, the largest number of any mosque in the world. At the center of this large plaza sits the Kaaba, as well as many other holy buildings and monuments.