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 Badh 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 Muhammad'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. High medieval period Turkmen nomads arrived in the vicinity of Jazirat Ibn ʿUmar in the summer of 1042, and carried out raids in Diyar Bakr and upper Mesopotamia. The Marwanid emirate became a vassal of the Seljuk Sultan Tughril in 1056. In the summer of 1083, the former Marwanid vizier Fakhr al-Dawla ibn Jahir persuaded the Seljuk Sultan Malikshah to send him with an army against the Marwanid emirate, and eventually Jazirat Ibn ʿUmar, the last remaining stronghold, was captured in 1085. Although the Marwanid emirate was severely reduced, its final emir, Nasir al-Dawla Mansur, was permitted to continue to rule solely Jazirat Ibn ʿUmar under the Seljuk Sultanate from 1085 onwards. The mamluk Jikirmish seized Mansur and usurped the emirate of Jazirat Ibn ʿUmar on Mansur's death in January 1096. In late 1096, Jikirmish