The Battle of Khazir (Arabic: يوم الخازر, romanized: Yawm Khāzir) took place in August 686 near the Khazir River in Mosul's eastern environs, in modern-day Iraq. The battle occurred during the Second Muslim Civil War and was part of the larger struggle for control of Iraq between the Syria-based Umayyad Caliphate, the Kufa-based pro-Alid forces of Mukhtar al-Thaqafi, and the Mecca-based caliphate of Abd Allah ibn al-Zubayr. It ended with the Umayyads being routed and the expansion of Mukhtar's rule into the region of Mosul.
The Muslim civil war left the Umayyad realm restricted to Damascus and its environs after most of their territories came under Ibn al-Zubayr's orbit. However, an Umayyad resurgence began with the accession of Caliph Marwan I, who dispatched an army led by Ubayd Allah ibn Ziyad to reconquer Iraq. This army's advance into Mosul precipitated the Battle of Khazir and its commander, Ubayd Allah, was an enemy of Mukhtar's pro-Alid partisans. Thus, Mukhtar quickly moved to halt the Umayyad advance, sending his Persian mawālī-dominated forces led by Ibrahim ibn al-Ashtar to confront the predominantly Syrian Arab army of the Umayyads. During the initial combat, part of Ibn al-Ashtar's forces were put to flight, but then regrouped under his command and charged against the Umayyad center. This resulted in heavy casualties on both sides and Ubayd Allah and several of his lieutenants were slain. The Umayyad commander Umayr ibn al-Hubab and his Sulaymi tribesmen deserted while the pro-Alids pursued the remaining Umayyad troops, scores of whom drowned in the Khazir River.