The Abbasid dynasty (750 AD- 1258) witnessed the movement of the capital from Damascus to Baghdad, and then from Baghdad to Samarra. The shift to Baghdad influenced politics, culture, and art. The Great Mosque of Samarra, once the largest in the world, was built for the new capital. Other major mosques built in the Abbasid Dynasty include the Mosque of Ibn Tulun in Cairo, Abu Dalaf in Iraq, the great mosque in Tunis. Abbasid architecture in Iraq as exemplified in the Fortress of Al-Ukhaidir (c.775 –76) demonstrated the "despotic and the pleasure-loving character of the dynasty" in its grand size but cramped living quarters.