Ifriqiya (Arabic: إفريقية, romanized: Ifrīqya, lit. 'Africa') was a medieval historical region comprising today's Tunisia, eastern Algeria, and Tripolitania (roughly western Libya), particularly the region between the sea and the edges of the Sahara. It included all of what had previously been the Byzantine province of Africa Proconsularis and extended beyond it, but did not include the Mauretanias.
Ifriqiya is bordered to the west by the Central Maghreb, with which the borders are fluid depending on the chroniclers and the era. For most of its early history, the capital of Ifriqiya was Qayrawan (Kairouan), but in some periods it moved to Mahdiya (Mahdia) and later it remained at Tunis.