 Barjawan however soon found a new ally, in the person of the Kutama leader Jaysh ibn al-Samsama, governor of Tripoli, whom Ibn Falah dismissed and replaced with his own brother.Jaysh and Barjawan gathered a following of other dissatisfied Berber leaders, and launched an uprising in Cairo in October 997.Ibn Ammar was forced to flee, and Barjawan replaced him as "wāsiṭa".