The Aghlabid dynasty of emirs ruled Ifriqiya (northern Africa), nominally on behalf of the Abbasid Caliph, for about a century, until overthrown by the new power of the Fatimids.