The only time Tang China fought the Abbasids
July 751 ยท Talas River, Central Asia
By 750 two great empires had grown toward each other across Central Asia: Tang China from the east and the new Abbasid Caliphate from the west. In July 751 their armies met by the Talas River, in what is now Kazakhstan and Kyrgyzstan. The Tang general was Gao Xianzhi, a commander of Korean descent famous for leading troops over the Pamir mountains.
After several days of fighting, the Karluks, Turkic horsemen in the Tang army, turned against Gao and attacked from behind. The Tang army was crushed. Sources disagree wildly on its size; modern estimates suggest about 30,000 on each side.
Four years later the An Lushan rebellion pulled Tang troops home, and Chinese power in Central Asia faded. The region came to follow Islam rather than Chinese rule.
A famous story says Chinese prisoners from Talas taught papermaking to Samarkand, and so to the Islamic world. Historians doubt it: paper was already being used and probably made there before the battle. But paper did spread west, and Baghdad had its first paper mill by about 795.