 In 909 using the military might of the Kutama, they conquered Raqqada, the Aghlabid capital.In 921, the Fatimids established the Tunisian city of Mahdia as their new capital.In 948 they shifted their capital to al-Mansuriyya, near Kairouan in Tunisia.