Al-Mukhtar ibn Abi Ubayd al-Thaqafi (Arabic: الْمُخْتَار ٱبْن أَبِي عُبَيْد الثَّقَفِيّ, romanized: al-Mukhtār ibn Abī ʿUbayd al-Thaqafī; c. 622 – 3 April 687) was an Arab pro-Alid revolutionary based in Kufa, who led a rebellion against the Umayyad Caliphate in 685 and ruled over most of Iraq for eighteen months during the Second Fitna.
Born in Ta'if, Mukhtar moved to Iraq at a young age and grew up in Kufa. Following the death of Husayn ibn Ali, a grandson of the Islamic prophet Muhammad, at the hands of the Umayyad army in the Battle of Karbala in 680, he allied with the rival caliph Abd Allah ibn al-Zubayr in Mecca, but the alliance was short-lived. Mukhtar returned to Kufa where he declared Muhammad ibn al-Hanafiyya, a son of caliph Ali (r. 656–661) and brother of Husayn, the mahdi and the imam, and called for the establishment of an Alid caliphate and retaliation for Husayn's killing. He took over Kufa in October 685, after expelling its Zubayrid governor, and later ordered the execution of those involved in the killing of Husayn. Hostile relations with Ibn al-Zubayr ultimately led to Mukhtar's death by the forces of the Zubayrid governor of Basra, Mus'ab ibn al-Zubayr, following a four-month siege.