In 979, the Fatimid general Fadl ibn Salih offered the Hamdanid emir Abu Taghlib control of Ramla in place of the Jarrahids; by doing this, Fadl sought to stifle a brewing alliance between the main regional Arab powers at the time, the Jarrahids, Hamdanids and Uqaylids.[10] Abu Taghlib and his Uqaylid allies attacked Ramla in August, but were defeated and captured on 29 August by the Jarrahids, who by then regained Fadl's support.[9] The latter requested Mufarrij hand over Abu Taghlib to Caliph al-Aziz, but fearing Abu Taghlib could be potentially used by the Fatimids against him, Mufarrij killed him and sent his head to the caliph instead.[3][9] Mufarrij's execution of Abu Taghlib spelled the official end of the Hamdanids of Mosul.[9]