Imam Abd al-Wahhāb ibn Abd al-Rahman of the Rustamid dynasty initiated hostilities with the Aghlabids by leading Ibadi Tripolitanian tribes in an assault on Tripoli in July 812.
[1][2][3] During the siege, the Aghlabid Emir of Ifriqiya, Ibrahim ibn al-Aghlab passed away.
Consequently, the Ibadis lifted the siege of Tripoli, suggesting that an agreement had been reached.
[1][4] The Ibadi tribes of Tripolitania and southern Tunisia were afterwards left by the Rustamid imams to fend for themselves in their confrontations with the Aghlabids.
Ibadi tribes were frustrated with Rustamid military inactivity, causing schismatic secessionist movements to form and outbreak of several rebellions.