Abu Taghlib, Hamdanid Emir of Mosul, allied himself with the Buyid Emir Izz al-Dawla Bakhtiyar of Iraq in his civil war against his cousin Emir 'Adud al-Dawla of Fars in 977 on the condition that Bakhtiyar hand over Abu Taghlib's younger brother Hamdan, who had conspired against him. Although Abu Taghlib had secured his reign by executing his rival brother Hamdan, the alliance quickly backfired following Adud al-Dawla's victory over Abu Taghlib and Bakhtiyar at Samarra in the spring of 978 as he then annexed Hamdanid territory in upper Mesopotamia, and thus Jazirat Ibn ʿUmar came under Buyid rule, forcing Abu Taghlib to go into exile. Buyid control of Jazirat Ibn ʿUmar was cut short by the civil war that followed the death of Adud al-Dawla in 983 as it allowed the Kurdish chief Bādh to seize Buyid territory in upper Mesopotamia in the following year, and he was acknowledged as its ruler by the claimant Emir Samsam al-Dawla. Bādh attempted to conquer Mosul in 990, and the Hamdanid brothers Abu Abdallah Husayn and Abu Tahir Ibrahim were sent by the Buyid Emir Baha al-Dawla to repel the threat. The Uqaylid clan agreed to aid the brothers against Bādh in return for the cities of Jazirat Ibn ʿUmar, Balad, and Nisibin, and Bādh was subsequently defeated and killed. The leader of the Uqaylids Abu l-Dhawwad Muhammad ibn al-Musayyab secured control of the cities, and acknowledged Emir Baha al-Dawla as his sovereign. On Muhammed's death in 996, his brother and successor as emir al-Muqallad asserted his independence, expelling the Buyid presence in the emirate, and thus ending Buyid suzerainty.