Occurrence of Attributes in Original Text

The text related to the cultural heritage 'Kairouan' has mentioned 'Baghdad' in the following places:
Occurrence Sentence Text Source
In 800 Caliph Harun ar-Rashid in Baghdad confirmed Ibrahim as Emir and hereditary ruler of Ifriqiya.
When the Zirids declared their independence from Cairo and their conversion to Sunni Islam in 1045 by giving allegiance to Baghdad, the Fatimid Caliph Ma'ad al-Mustansir Billah sent as punishment hordes of troublesome Arab tribes (Banu Hilal and Banu Sulaym) to invade Ifriqiya.