Eventually, though, a crisis developed when a pro-T*betan ruler came to power in the kingdom of Gilgit, located in the neighborhood of the modern city of the same name, now in Pakistan. The Chinese, after a number of unsuccessful attempts to rectify this unacceptable situation, finally sent a large army westward in 747 under the command of the famed Korean general Kao Hsien-chih who, in a dramatic campaign, remembered long after in both China and Korea, crossed the Pamirs and swooped down on an unsuspecting Gilgit. Demolishing the bridge across which T*betan reinforcements would have had to arrive, Kao beheaded selected pro-T*betan officials, and took the king and his T*betan wife prisoner -thereby ending Gilgit's flirtation with China's enemy, but failing nonetheless to head off the impending collision with the Arabs at Talas.
On the Arab side, our key informants on the Battle of Talas are the renowned historian Ibn al-Athir (1160-1233) and the comparatively unheralded al-Dhahabi (1274-1348). (Curiously, the most outstanding early Muslim historian, al-Tabari [839-923], has nothing to say about the Battle of Talas - indicating, perhaps, that from the medieval Islamic perspective, the battle seemed a rather peripheral encounter.) And they, along with Chinese sources, suggest that the clash of empires at Talas had its roots in a purely local quarrel, in the year 750, between the rulers of two petty kingdoms - Ferghana and Chach - that caused Ferghana to seek the military assistance of the Chinese. Kao Hsien-chih, now governor of Kucha, responded by besieging Chach, promising its king safe passage and then treacherously decapitating him. The son of the executed ruler, however, escaped and got word to Abu Muslim, the Abbasid governor of Khorasan. Sensing a golden opportunity to diminish China's political role in Central Asia, Abu Muslim quickly mustered his army at Merv — in today's Soviet Turkmenistan - added reinforcements from Tukharistan, a province in the north of today's Afghanistan, and crossed the Oxus to march to Samarkand. There, he rejoined the army of Transoxania under Ziyad ibn Salih, formerly the Umay-yad governor of Kufa in Iraq, and Ziyad took command.
The Chinese had mobilized - in concert with the troops of Ferghana - 30,000 men, according to Chinese accounts, 100,000 according to the Arabs and in July, 751, met the armies of Islam near the town of Talas or Taraz on the Talas River. A modern city of Talas can be found in the Kirghiz S. S. R., but medieval Talas probably lay nearer to present-day Dzhambul.
Chinese annals say the fighting lasted for five days, while Arabic records are inconclusive as to the duration. The end result of this epic encounter, however, is unanimously attested by our sources. The Arabs, aided by the Qarluq Turks, utterly destroyed the Chinese army. In the words of al-Dhahabi, "God cast terror into the hearts of the Chinese. Victory descended, and the unbelievers were put to flight"
o al-Dhahabi, the battle was won by the strategic acumen of Ziyad ibn Salih whose name will forever be remembered in connection with this thunderous Arab triumph beyond the Jaxartes. But the Chinese pin the blame on the Qarluq Turks, who, one account says, were "revolting" or "rebelling" against Kao Hsien-chih. In other words the Qarluqs deserted the Chinese coalition and changed sides in the midst of the action. In fact, the Qarluqs, far from mutinying during the engagement, were allied with the Arabs from the beginning and probably attacked the Chinese from the rear as part of a carefully prearranged battle plan - formulated, we may suppose, by Ziyad ibn Salih