Tahert
Tahert was the upland seat of the Ibadi Rustamid imamate in the central Maghreb, founded in the late eighth century by the Persian-descended scholar Abd al-Rahman ibn Rustam near Tagdemt. While Abd al-Rahman was elected for his piety and learning, subsequent imams were drawn largely from the Rustamid family; beyond their core central Maghrebi domains, Ibadi tribes in southern Ifriqiya and Tripolitania also acknowledged their spiritual leadership, turning Tahert into a meeting place of Andalusian craftsmen and trans-Saharan caravans.
When a Fatimid army stormed Tahert in 909, surviving Ibadi scholars and merchants fled south to the Ouargla oasis and settled at Sedrata. In the eleventh century, Ibadi communities established fortified desert towns in the Mzab.