The Battle of Talas was the encounter of 751 between the Tang's Anxi army and the forces of the Abbasid caliphate (the 'black-robed Tazi') at Talas in Central Asia (near present Taraz, Kazakhstan). By the century's middle the Tang, through the Anxi Protectorate, had pushed into the Western Regions and on into Central Asia, where the Arabs' conquests had reached Transoxiana — the two powers meeting. In 751 the Anxi commissioner Gao Xianzhi, pleading that the stone country (Tashkent) had failed its vassal's rites, destroyed it; its prince fled for help and brought the Arab army east. Gao marched some 20,000 Anxi troops with Karluk and other allies more than 700 li into hostile country and faced the Arabs at Talas for five days; on the fifth the Karluks turned coat and struck the Tang from behind in concert with the Arabs — the army broke, and Gao led a few thousand back to Anxi. Among the Tang captives were craftsmen, and from them, by the common account, papermaking traveled west. Soon after came the An Lushan rebellion, the Tang armies recalled east, and Central Asia passed gradually under Arab and local powers — though Tang and the caliphate kept up their embassies all the same.