Kairouan
凯鲁万
Kairouan is a city in inland Tunisia and was the capital of Aghlabid Ifriqiya. The Aghlabids took power in 800, and their emir Ziyadat Allah I rebuilt the Great Mosque in 836. In the 9th century, Kairouan drew scholars from across the Islamic world.
The Fatimids overthrew the Aghlabids in 909 and eventually established their capital at coastal Mahdia. The Zirids later governed Ifriqiya from Kairouan, where schools flourished amid a revival of trade. Arab tribal forces captured and devastated the city in 1057. Under the Hafsids, the Great Mosque underwent further work in 1248 and 1293–1294.