Upon Yazid's accession in April 680,
Pro-Alid Kufans urged
Husayn ibn Ali, the younger brother of now deceased Hasan, to lead a revolt against Yazid. Husayn subsequently sent his cousin
Muslim ibn Aqil to assess the political environment in Kufa. Mukhtar hosted Ibn Aqil at his house before the arrival of
Ubayd Allah ibn Ziyad. The latter was appointed to replace Mukhtar's father-in-law, Nu'man ibn Bashir, as governor due to Ibn Bashir's benign attitude toward Ibn Aqil and his followers. As a result of Ibn Ziyad's suppression and political maneuvering, Ibn Aqil's following started melting away and he was forced to declare the revolt prematurely. Mukhtar was not in the city at the time. After hearing the news, he attempted to gather supporters from Kufa's environs, but Ibn Aqil's revolt was defeated and he was executed before Mukhtar returned to the city. Mukhtar was arrested and brought to the governor but he denied involvement in the revolt. While Mukhtar was imprisoned, Husayn was slain by Ibn Ziyad's forces at the
Battle of Karbala on 10 October 680. Mukhtar was afterward released upon the intervention of
Abd Allah ibn Umar, an influential son of the second caliph and Mukhtar's brother-in-law, and ordered to leave Kufa.
Exile in Mecca By this time,
Abd Allah ibn al-Zubayr, a son of Muhammad's close companion
al-Zubayr ibn al-Awwam, secretly started taking allegiance in
Mecca and came to control the entire
Hejaz (western Arabia). Having left Kufa, Mukhtar headed for Mecca and offered allegiance to Ibn al-Zubayr on the condition that he be consulted about important matters and awarded a high post, which Ibn al-Zubayr refused. Mukhtar then left for Ta'if and, after one year, Ibn al-Zubayr, persuaded by his advisers, accepted Mukhtar's homage under the same terms. When Yazid dispatched an army to
retake Mecca in 683, Mukhtar participated in the city's defence. After Yazid died in November, the Umayyad army retreated and Ibn al-Zubayr openly proclaimed his caliphate. Mukhtar was informed by people coming from Kufa that the city had come under Ibn al-Zubayr's control but many Kufans were looking for an independent leader of their own. He claimed that he was the man they were looking for. While in Mecca, he sought permission from Ali's son,
Muhammad ibn al-Hanafiyya, to avenge Husayn's death and secure power for Ibn al-Hanafiyya. The latter responded that he neither approved nor disapproved of such an action, but bloodshed should be avoided. Earlier, he had made the same offer to Husayn's son
Ali al-Sajjad but was refused. Five months after Yazid's death, he returned to Kufa without informing Ibn al-Zubayr, who he thought had not kept his promise. Some accounts state that Ibn al-Zubayr himself sent him to Kufa as governor with instructions to gather a force capable of resisting Umayyad attempts to reconquer Iraq. This is considered unlikely by the modern historians.
Return to Kufa , where his grave is located. In Kufa, Mukhtar began recruiting people to take revenge against the killers of Husayn, promising them victory and fortune. At the same time,
Sulayman ibn Surad, a companion of Muhammad and an Alid supporter, was rallying a group of Kufans, who called themselves
Tawwabin, to fight the Umayyads to atone for their failure to support Husayn during the Battle of Karbala. The Tawwabin movement created difficulties for Mukhtar. Most Alid partisans in Kufa supported Ibn Surad because he was Muhammad's companion, and as a result, Mukhtar was unable to attract many recruits. He criticised the Tawwabin's actions as premature and destined for failure, arguing that Ibn Surad was old, weak, and militarily inexperienced. He then claimed that he was a lieutenant of Ibn al-Hanafiyya, whom he called the
Mahdi. He convinced many Alid partisans, including some five hundred (sing. ; local converts to Islam), that he was working under the orders of the Mahdi. Doubting the authenticity of Mukhtar's claims, a group of Alid partisans from Kufa went to Mecca seeking verification from Ibn al-Hanafiyya. He replied in an ambiguous manner that he was satisfied with anyone whom God uses to take revenge on enemies of the family of the prophet. They interpreted this as confirmation of Mukhtar's claims and returned to join him. To win over the hitherto unpersuaded
Ibrahim ibn al-Ashtar, an influential Alid partisan and head of the
Nakhai tribe, Mukhtar presented him with a letter, which he claimed was authored by Ibn al-Hanafiyya. In it, Ibn al-Hanafiyya ostensibly called himself the Mahdi and urged Ibn al-Ashtar to support Mukhtar. After expressing some doubts, Ibn al-Ashtar eventually joined him. The letter was likely fabricated, and Ibn al-Hanafiyya seems to have had no involvement in the revolt. He tolerated the use of his name, however, and did not disapprove of Mukhtar's activities. Nonetheless, when he wanted to visit his followers in Kufa, he was deterred by a rumour, floated by Mukhtar upon hearing this news, that the true Mahdi would not die if struck by a sword. Ibn al-Zubayr appointed Abd Allah ibn Yazid as governor of Kufa in 684. Fearful of Mukhtar, Ibn Yazid imprisoned him. Sometime later,
Abd Allah ibn Umar interceded for Mukhtar, who promised to refrain from anti-government activity and was released.
Overthrow of the Zubayrid governor After his release Mukhtar resumed his revolutionary activities. The Tawwabin were defeated by the Umayyads at the
Battle of Ayn al-Warda in January 685, and most of the Pro-Alid Kufans shifted allegiance to Mukhtar. Ibn al-Zubayr replaced Ibn Yazid with
Abd Allah ibn Muti as governor to contain the expected agitation but to no avail. Mukhtar and his followers planned to overthrow the governor and seize control of Kufa on Thursday, 19 October 685. On the evening of 17 October Mukhtar's men clashed with Zubayrid forces. Mukhtar signaled an early declaration of revolt to his troops by lighting fires. By the evening of Wednesday, 18 October, the Zubayrid forces were defeated. Ibn Muti went into hiding and later, with help from Mukhtar, escaped to
Basra. The next morning, Mukhtar received allegiance from Kufans in the mosque on the basis of "Book of God,
Sunnah of the Prophet, revenge for the Prophet's family, defence of the weak and war on sinners". ==Rule over Iraq==