Battle of Aksu (717)
The Battle of Aksu () was fought between Arabs of the Umayyad Caliphate and their Turgesh and Tibetan Empire allies against the Tang dynasty of China. In 717 AD, the Arabs, guided by their Turgesh allies, besieged Buat-ɦuɑn (Aksu) and Dai-dʑiᴇk-dʑiᴇŋ (Uqturpan) in the Aksu region of Xinjiang. Tang troops backed by their protectorates in the region attacked and routed the besieging Arabs forcing them to retreat. Location. The battle took place somewhere in the Xinjiang region near modern China's border with Kyrgyzstan. Background. The first encounter between the Tang Chinese and the  Umayyad Arabs had occurred in 715 AD when Ikhshid, the king of Fergana Valley, was deposed with the help of the Arabs of the Umayyad Caliphate and a new king Alutar was installed on the throne. The deposed king fled to Kucha (seat of Anxi Protectorate), and sought Chinese intervention. The Chinese sent 10,000 troops under Zhang Xiaosong to Ferghana. He defeated Alutar and the Arab occupation force at Namangan and reinstalled Ikhshid on the throne. In 717 AD, the Arabs attacked Transoxiana again hoping to capture the Tang dynasty's Four Garrisons of Anxi district. The invading Arab forces  captured several forts in Ferghana and had taken control of all of Ferghana. The Arabs then captured Kashgar and proceeded on towards Aksu. Battle. In 717 AD, the Umayyad Arabs along with their Turgesh and Tibetan allies besieged two cities in the Aksu region which was under Chinese protection. The commander of China's four Anxi garrisons in Central Asia, Tang Jiahui, sent two armies: one composed of Tang irregular troops led by Jiahui himself and other composed of Karluk horsemen led by Ashina Xin. In the resulting battle, the Arab army was heavily defeated and forced to retreat. Many  Arab troops were taken prisoner but were subsequently released after the Caliphate paid a ransom in gold for their release. Aftermath. As a result of the battle, the Arabs were expelled from Northern Transoxiana. The Turgesh submitted to the Tang and subsequently attacked the Arabs in Ferghana. For their loyalty, the Tang emperor conferred imperial titles on the Turgesh khagan Suluk and awarded him the city of Suyab. With Chinese backing, the Turgesh launched punitive attacks into Arab territory eventually wresting all of Ferghana from the Arabs with the exception of a few forts.