Opposition to the Umayyads in 1882. Throughout his revolt, Ibn al-Zubayr used the sanctuary as his base of operations and it was twice besieged, in 683 and 692. He rebuilt it following severe damage during the first siege, but his changes were later reversed. Ibn al-Zubayr did not oppose
Mu'awiya I's accession to the caliphate in 661 and remained largely inactive during the course of his reign. However, he refused to recognize Mu'awiya's nomination of his son
Yazid I as his successor in 676. When Yazid acceded following his father's death in 680, Ibn al-Zubayr again rejected his legitimacy, despite Yazid having the backing of the Arab tribesmen of
Syria who formed the core of the Umayyad military. In response, Yazid charged
al-Walid ibn Utba ibn Abi Sufyan, the governor of Medina, with gaining Ibn al-Zubayr's submission, but he evaded the authorities and escaped to Mecca. He was joined there by Ali's son
Husayn, who too had refused submission to Yazid. Husayn and his supporters made a stand against the Umayyads in
Karbala in 680, but Husayn and most of his relatives and companions were killed
in the battle there. Following Husayn's death, Ibn al-Zubayr began clandestinely recruiting supporters. By September 683, he had taken control of Mecca. He referred to himself as (the fugitive at the sanctuary,
viz., the Kaaba), adopted the slogan (judgement belongs to God alone), but made no claim to the caliphate. Yazid ordered the governor of Medina,
Amr ibn Sa'id ibn al-As, to arrest Ibn al-Zubayr. In turn, the governor instructed Ibn al-Zubayr's estranged brother, the head of Medina's (security forces), Amr, to lead the expedition. However, the Umayyad force was ambushed and Amr was captured and subsequently killed while in captivity. Ibn al-Zubayr declared the illegitimacy of Yazid's caliphate and allied himself with the
Ansar of Medina, led by
Abd Allah ibn Hanzala, who had withdrawn support for Yazid due to his supposed improprieties. Ibn al-Zubayr also gained the support of the
Kharijite movement in Basra and
Bahrayn (eastern Arabia); the Kharijites were early opponents of the Umayyads who had defected from Caliph Ali because of his participation in the 657 arbitration. In response to growing opposition throughout Arabia, Yazid dispatched a Syrian Arab expeditionary force led by
Muslim ibn Uqba to suppress Ibn al-Zubayr and the Ansar. The Ansar were routed at the
Battle of al-Harra in the summer of 683, and Ibn Hanzala was slain. The army continued toward Mecca, but Ibn Uqba died en route and command passed to his deputy
Husayn ibn Numayr al-Sakuni. The latter
besieged the city on 24 September after Abd Allah Ibn al-Zubayr refused to surrender. The Kaaba was severely damaged during al-Sakuni's bombardment. During the siege, two potential Qurashi candidates for the caliphate, Mus'ab ibn Abd al-Rahman and
al-Miswar ibn Makhrama, were killed or died of natural causes. In November, news of Yazid's death prompted al-Sakuni to negotiate with Ibn al-Zubayr. Al-Sakuni proposed to recognize him as caliph on the condition that he would rule from
Syria, the center of the Umayyad military and administration. Ibn al-Zubayr rejected this and the army withdrew to Syria, leaving him in control of Mecca.
Claim to the caliphate . Ibn al-Zubayr's sovereignty as caliph was recognized in the
Hejaz,
Yemen,
Egypt,
Iraq and the districts of
Fars and
Kerman (areas shaded in green) Yazid's death and the subsequent withdrawal of the Umayyad army from the Hejaz afforded Ibn al-Zubayr the opportunity to realize his aspirations for the caliphate. He immediately declared himself (commander of the faithful), a title traditionally reserved for the caliph, and called for all Muslims to give him their oaths of allegiance. With the other potential Hejazi candidates dead, Ibn al-Zubayr remained the last contender for the caliphate among the anti-Umayyad factions in Mecca and Medina and most of these groups recognized him as their leader. An exception were the
Banu Hashim clan to which Muhammad and the
Alids belonged and whose support Ibn al-Zubayr deemed important for his own legitimacy as caliph. The leading representatives of the clan in the Hejaz,
Muhammad ibn al-Hanafiyya, the half-brother of Husayn ibn Ali, and their cousin
Abd Allah ibn Abbas, withheld their oaths citing the need for a stronger consensus in the wider Muslim community. Irritated, Ibn al-Zubayr besieged the clan's neighborhood in Mecca and imprisoned Ibn al-Hanafiyya to pressure the Banu Hashim. Meanwhile, the Kharijites under
Najda ibn Amir al-Hanafi in the
Yamama (central Arabia) abandoned Ibn al-Zubayr once he forwarded his claim to the caliphate, an institution they rejected, and Ibn al-Zubayr refused to embrace their doctrine. In the Umayyad capital
Damascus, Yazid was succeeded by his young son
Mu'awiya II, but Mu'awiya II wielded virtually no authority and died from illness only months after his accession. This left a leadership void in
Syria as there were no suitable successors among Mu'awiya I's Sufyanid house. In the ensuing chaos, Umayyad authority collapsed across the caliphate and Ibn al-Zubayr gained wide recognition. Most of the Islamic provinces offered their allegiance, including
Egypt,
Kufa,
Yemen and the
Qaysi tribes of
northern Syria. Likewise, in
Khurasan, the
de facto governor
Abd Allah ibn Khazim al-Sulami offered his recognition. Ibn al-Zubayr appointed his brother
Mus'ab as governor of Basra and its dependencies. In a testament to the extent of Ibn al-Zubayr's sovereignty, coins were minted in his name as far as the districts of
Kerman and
Fars in modern-day Iran; both were dependencies of Basra at that time. Nonetheless, his authority outside of the Hejaz was largely nominal. Most of the Arab tribes in
central and
southern Syria, which were dominated by the
Banu Kalb, remained loyal to the Umayyads and selected
Marwan ibn al-Hakam from the Abu al-As branch of the Umayyad clan to succeed Mu'awiya II. The proclamation of Marwan as caliph in Damascus marked a turning point for Ibn al-Zubayr. Marwan's
Yamani forces, led by
Ubayd Allah ibn Ziyad, decisively defeated the Zubayrid loyalist Qaysi tribes, led by
al-Dahhak ibn Qays al-Fihri, at the
Battle of Marj Rahit in July 684. The surviving Qaysi tribesmen fled to the
Jazira (Upper Mesopotamia) under the leadership of
Zufar ibn al-Harith al-Kilabi, who maintained his recognition of Ibn al-Zubayr's suzerainty. However, in March 685, Ibn al-Zubayr lost the economically important province of Egypt to Marwan. Meanwhile, negotiations collapsed between Ibn al-Zubayr and the Kufan revolutionary
Mukhtar al-Thaqafi, who took up the cause of the
Alid family. He declared Ibn al-Hanafiyya the
Imam and, unprecedented in Islamic history, the
Mahdi. Al-Mukhtar's partisans drove out the Zubayrid authorities from Kufa in October 685. Al-Mukhtar later dispatched a Kufan force to the Hejaz and freed Ibn al-Hanafiyya. Mus'ab's authority in Basra and Khurasan was also beginning to waver but was ultimately secured after he gained the backing of the powerful
Azdi chieftain and military leader of Khurasan,
al-Muhallab ibn Abi Sufra. Mus'ab also gained the defections of thousands of Kufan tribesmen and together they defeated and killed al-Mukhtar in April 687. Ibn al-Zubayr subsequently dismissed Mus'ab from office in 686/87 and appointed his own son Hamza as governor of Basra. The latter dispatched a force under Abd Allah ibn Umayr al-Laythi to drive out the Najdiyya Kharijites from Bahrayn after they overran the province, but the Zubayrids were repulsed. Hamza proved incompetent in his administration of Iraq and, following his failure to deliver the provincial revenues to the state treasury in Mecca, he was dismissed and allegedly imprisoned by his father. Mus'ab was reinstated shortly after, in 687/688. By that time, the Najdiyya Kharijites conquered Yemen and
Hadhramaut, while in 689, they occupied
Ta'if, Mecca's southern neighbour.
Suppression and death The defeat of al-Mukhtar, who had opposed the Zubayrids and the Umayyads, left Ibn al-Zubayr and Marwan's son and successor
Abd al-Malik () as the two main contenders for the caliphate. However,
Kharijite gains in Arabia had isolated Ibn al-Zubayr in the Hejaz, cutting him off from loyalists in other parts of the caliphate. In 691, Abd al-Malik secured the support of Zufar and the
Qays of Jazira, removing the principal obstacle between his Syrian army and Zubayrid Iraq. Later that year, his forces conquered Iraq and killed Mus'ab in the
Battle of Maskin. Al-Muhallab, who was leading the fight against the Kharijites in Fars and
Ahwaz, subsequently switched his allegiance to Abd al-Malik. After asserting Umayyad authority in Iraq, Abd al-Malik dispatched one of his commanders,
al-Hajjaj ibn Yusuf, to subdue Ibn al-Zubayr. Al-Hajjaj
besieged Mecca for six months, by which point, most of Ibn al-Zubayr's partisans and his sons Khubayb and Hamza surrendered upon offers of pardons. Ibn al-Zubayr remained defiant and acting on his mother's counsel, entered the battlefield where he was ultimately slain by
al-Hajjaj ibn Yusuf in 692. In an anecdote recorded by 9th-century historian
al-Tabari, when al-Hajjaj and his lieutenant commander,
Tariq ibn Amr, stood over Ibn al-Zubayr's body, Tariq said of the latter: "Women have borne none manlier than he. He had no defensive trench, no fortress, no stronghold; yet he held his own against us an equal, and even got the better of us whenever we met with him". Al-Hajjaj posted Ibn al-Zubayr's body on a
gibbet where it remained until Abd al-Malik allowed Ibn al-Zubayr's mother to retrieve it. His body was subsequently buried in the house of his paternal grandmother Safiyya in Medina. The death of Ibn al-Zubayr and the victory of the Umayyads marked the end of the Second Fitna. == Descendants ==