An outnumbered force led by the Umayyad general al-Jarrah ibn Abdallah engaged the Khazars for three days. Ultimately, abandoned by many of their mawaliauxiliaries, the Caliph's forces were overwhelmed and defeated. During the course of the battle, al-Jarrah was killed. The victorious Barjik mounted his head on top of the throne from which he commanded the battles of his Middle Eastern campaign. According to the historian Agapius, the Arabs suffered 20,000 dead and twice that number captured, a figure which probably includes the population of Ardabil and the surrounding territories.
Following their victory, the Khazars occupied Ardabil. The next year, however, Barjik led an army to Mosul and was defeated. According to Muhammad ibn Jarir al-Tabari and other Arab historians, the Muslims were so enraged by Barjik's desecration of their commander's head that they fought with extra vigor. The Khazar army at Mosul was defeated and withdrew north of the Caucasus Mountains.