[1] Political, social and economic conditions in the Qarmatian state had reached a critical point when Al Uyuni began his revolt.
[1] The final overthrow of the Qarmatians started with the revolt of Abu al-Bahlul al-Awwam, but the deathblow was struck once Al Uyuni petitioned the Abbasid caliph Al-Qa'im and the Seljuk Emperor Malik-Shah I (represented by his vizier Nizam al-Mulk) for reinforcements in 1072[2] or 1073.
[4][5] Malik-Shah was the more receptive of the two sovereigns in his eagerness for suzerainty over Al-Ahsa and to avenge his general Kajkina’s defeat at the hands of the Qarmatian troops of Yahya ibn Ayyash.
[7] After the retreat of the Seljuk army, however, Ibn Ayyash recaptured Qatif, but he was rebuffed by Al Uyuni, who proceeded to occupy Bahrain.
Finally killing Ibn Ayyash in battle, Al Uyuni has united Eastern Arabia and Bahrain into one state, the Uyunid Emirate, based in Al-Ahsa.