The 'Uqailids or 'Uqaylid dynasty was a Shi'a Arab dynasty with several lines that ruled in various parts of Al-Jazira, northern Syria and Iraq in the late tenth and eleventh centuries. The main line, centered in Mosul, ruled from 990 to 1096.
The 'Uqailids were descended from the Banu Uqayl and were Shi'a. They first came to power in Diyar Bakr when they were granted land there by the Buwayhids, who hoped that they would serve as a buffer against the Kurd Badh. Soon afterwards the 'Uqailids forged an alliance with the Hamdanids, who had been expelled from Mosul by the Buwayhids in 979. Together the two of them moved against the Buyids and Mosul and the Diyar Rabi'a was occupied in 989. The 'Uqailid leader, Muhammad b. Musayyib, then fought against Badh, which eventually resulted in the death of the Kurdish rebel. Following this, Muhammad turned against the Hamdanids and defeating them as well. He also forced the Buwayhid governor of Mosul to grant him half of his dependencies.
Muhammad b. Musayyib died in 996. He was succeeded by his brother Muqallad, who in that same year marched on Mosul, forcing its Buwayhid governor to flee. From there the 'Uqaylids advanced into Iraq; they succeeded in overrunning much of the country and even raiding Baghdad. Eventually the Buwayhid amir Baha' al-Dawla came to terms with Muqallad, whereby the Uqaylid was invested by the caliph with the rule of Mosul, Kufa and Jami'yan. He was also given the title of "Husam al-Dawla". The treaty made Muqallad nominally subservient to the Buwayhids but in effect he was independent, refusing to pay the tribute that he owed.