After conquering Cairo, the Fatimids abandoned Tunisia and parts of Eastern Algeria to the local Zirids (972–1148). Zirid Tunisia flourished in many areas: agriculture, industry, trade, and religious and secular learning. Management by the later Zirid emirs was neglectful though, and political instability was connected to the decline of Tunisian trade and agriculture.