To the south, Ifriqiya was bounded by the semi-arid lands and salt marshes named el-Djerid. The northern boundary fluctuated from as far north as Sicily to the North African coastline, and the western boundary usually reached Béjaïa. Ifriqiya is bordered to the west by the Central Maghreb, with which the borders are fluid depending on the chroniclers and the eras. The capital was briefly Carthage, then Qayrawan (Kairouan), then Mahdia, then Tunis.[8] The Aghlabids, from their base in Kairouan, initiated the invasion of Southern Italy beginning in 827, and established the Emirate of Sicily, which lasted until it was conquered by the Normans, and the short-lived Emirate of Bari.