The Battle of the Defile or Battle of the Pass was fought in the Takhtakaracha Pass (in modern Uzbekistan) between a large army of the Umayyad Caliphate and the Turkic Türgesh khaganate over three days in July 731 CE. The Türgesh had been besieging Samarkand and its commander, Sawra ibn al-Hurr al-Abani, had sent a request for relief to the newly appointed governor of Khurasan, Junayd ibn Abd al-Rahman al-Murri. Junayd's 28,000-strong army was attacked by the Türgesh in the pass, and although the Umayyad army managed to extricate itself and reach Samarkand, it suffered enormous casualties; Sawra's 12,000 men, who had been commanded to attack the Türgesh from the rear in a relief effort, were almost annihilated.
The battle, for which one of the most detailed accounts of the entire Umayyad era survives in the History of al-Tabari, halted or reversed Muslim expansion into Central Asia for a decade. The losses suffered by the Khurasani army also led to the transfer of reinforcements from the metropolitan regions of the Caliphate, which in the long term weakened the Umayyad regime and helped bring about its collapse twenty years later in the Abbasid Revolution that began in Khurasan.
The region of Transoxiana had been conquered by the Muslim Arabs of the Syri-based Umayyad Caliphate under Qutayba ibn Muslim in the reign of al-Walid I (r. 705–715), following the Muslim conquest of Persia and of Khurasan in the mid-7th century.<1> The loyalties of the region's native Iranian and Turkic inhabitants and autonomous local rulers remained volatile, and in 719, they sent a petition to the Chinese and their vassals the Türgesh (a Turkic tribal confederation) for military aid against the Muslims.<2> In response, Türgesh attacks began in 720, and the native Sogdians launched uprisings against the Caliphate. These were suppressed with great brutality by the governor of Khurasan, Sa'id ibn Amr al-Harashi, but in 724 his successor, Muslim ibn Sa'id al-Kilabi, suffered a major disaster (the so-called "Day of Thirst") while trying to capture Ferghana.<3><4> For the next few years, Umayyad forces were limited to the defensive. Efforts to placate and win the support of the local population by abolishing taxation of the native converts to Islam (mawali) were undertaken, but these were half-hearted and soon reversed, while heavy-handed Arab actions further alienated the local elites. In 728 a large-scale uprising, coupled with a Türgesh invasion, led to the abandonment of most of Transoxiana by the Caliphate's forces, except for the region around Samarkand.<5><6>
In the hope of reversing the situation, in early 730 Caliph Hisham ibn Abd al-Malik (r. 723–743) appointed a new governor in Khurasan: the experienced general Junayd ibn Abd al-Rahman al-Murri, who had been recently engaged in the pacification of Sindh. The difficult security situation at the time is illustrated by the fact that Junayd needed an escort of 7,000 cavalry after crossing the Oxus River, and that he was attacked by the Türgesh khagan Suluk while riding to link up with the army of his predecessor, Ashras al-Sulami, who in the previous year had advanced up to Bukhara in a hard-fought campaign. After difficult fighting, Junayd and his escort were able to repel the attack and link up with al-Sulami's forces. Bukhara and most of Sogdiana was recovered soon after, as the Türgesh army withdrew north towards Samarkand. The Muslim army followed and scored a victory in a battle fought near the city. Junayd then retired with his troops to winter in Merv.<7><8> During the winter, rebellions broke out south of the Oxus in Tokharistan, which had previously been quiescent under Muslim rule. Junayd was forced to set out for Balkh and there dispersed 28,000 of his men to quell the revolt. This left him seriously short of men when, in early 731, the Türgesh laid siege to Samarkand and appeals for aid arrived from the city's governor, Sawra ibn al-Hurr al-Abani. Despite the opinion of the army's veteran Khurasani Arab leaders, who counselled that he should wait to reassemble his forces and not cross the Oxus with less than 50,000 men Junayd resolved to march immediately to Samarkand's rescue