Central Asian War
Part 2
Following the Islamic victory at Samarkand, Gao Xianzhi was disgraced and removed from his position as general. He avoided execution, but found himself almost forced into exile by the military governor of Anxi, Wang Zhengjian. He was replaced by his former assistant, Feng Changqing.
As for the general of Goguryeo descent, he returned to Chang’an, and converted to Islam. Gao would then return to his homeland near the end of the Central Asian War, being one of the first Muslims to arrive at the region.
Feng took over with certain determination, and organized the sparse remnants of Gao’s army in Arbinjan, near the Zarafshan river. There, he met their Turgesh allies, who now arrived in full numbers and with their chieftains present. Other Turkic chieftains responded to the general’s call, and added as much as 15k men, mostly cavalry. This more than recovered the troops lost at Samarkand, but Feng remained stoic in his approach. He knew that Abu Muslim was chasing them down, and would soon find them.
After a few days, Abu Muslim’s scouts found out that the Chinese army was stationed at Arbinjan, and the general began to plan the assault. Only three weeks after Samarkand, the Caliphal army reached the outskirts of the town, where the Chinese were already formed for battle.
The battle was slow, long and tortuous. The numerical advantage of the Muslims presented a sizable advantage, though the ample number of Turkic horsemen that knew the place like the palm of their hand was arguably an even greater one. Abu Muslim fought his hardest battle yet, and his tactical prowess was tested.
After a day, the dynamics of the battle had turned completely against him. With a surprise assault in the flanks by turkic cavalry, the Muslims found themselves split in two and in a vulnerable position. However, the Iranian general did not retreat or panic, and instead insisted his men not to break formation.
Isma’il kept his men’s morale high, and led a charge into the latter end of the turkic horsemen, to encircle them instead. His men followed him and fought just as valiantly, with total faith put in them having the favor of Allah. The turks were caught off-guard by this sudden aggressive assault, and panicked. In their desperation to move out of there, their formation broke and chaos ensued.
Isma’il was struck by one of the fleeing horses, and then an arrow hit his head while he was still lying on the ground. Most of his men did not notice this, as those closer to him retrieved him from the battle very quickly. The assault was ultimately successful, and the Turks were encircled, while the panic made it easier for the Muslims to slaughter them.
Muhammad al-Nafs al-Zakiyya and Abu Muslim then led one final offensive straight into the core of the Chinese army. The confrontation once again led to great losses on both sides, but Abu Muslim managed to outsmart the overly conservative Feng, who chose to cross the Zarafshan river and retreat.
The Muslims captured several thousand Chinese and Turkic soldiers, while most of the army fled alongside their general. Feng successfully crossed the river and quickly began to retreat further east, north of the Hissar mountains.
Abu Muslim captured the city and only then was told about Isma’il’s fatal wounds. By that time, the son of the Caliph had already succumbed to his injuries. Normally, a general in his position would have returned to Caliphal territory to deliver the corpse of the prince. However, Abu Muslim knew that Isma’il would want them to fulfill Allah’s will and defeat the Chinese. For such, he only sent a few hundred men back with the corpse of Isma’il, with the mission of delivering the terrible news to the Caliph.
Isma’il’s death did not decrease morale. On the contrary, he became a martyr for the Islamic army, which only found more reason to continue fighting and chasing the Chinese. In fact, it became a signal to conquer the territories of the Tang, or so said Abu Muslim.
After leaving Sogdia through the Hissar mountains, Feng reached the city of Bunjikath, near Ferghana. There, he once again tried to regroup, but found that his losses had been quite heavy. The Chinese general sent a letter to Wang, who was sitting as the governor of Anxi in Qiuci. He asked for reinforcements to try and stop the Islamic menace, but they would not arrive in time.
Two battles followed. One at Bunjikath, and then one further into Ferghana, near the Jaxartes river. Both battles were resounding victories by Abu Muslim, and this time the losses on the Muslim side were less severe. The dynamic had been entirely different, as what remained of the Chinese army was dominated and once again forced to retreat into the core of Ferghana.
These victories would call the attention of the young Tsenpo that had recently succeeded his father after an assassination in early 755. The Tibetan Empire and the Tang had a long history of fighting and struggling for Central Asian territories, namely the Tarim Basin. That is most likely the reason behind the envoy sent from Lhasa to meet the Muslim forces at Ferghana.
Abu Muslim and his forces were met by the envoy while they were on their way to Uzkand. Initially, the greeting was hostile, but as soon as the Tibetan diplomats explained their offer, negotiations began. The Tibetans offered an alliance to take down the Tang, and all they asked in exchange was the Tarim Basin. The Iranian general requested that a letter be sent to Kufa to inform the Caliph of the alliance, but in principle, he accepted the terms.
The diplomatic envoy returned to Lhasa with the good news, and the young Trisong Detsen dispatched an army of almost 100k men on the way to the Tarim Basin, while the Muslims won at Uzkand and captured the city.
The Chinese had now been pushed all the way to Kashgar, near the center of the Anxi Protectorate. Their Turgesh allies had been destroyed, and their western armies found the same fate. Feng was killed at Uzkand, and those who survived the battle fled through the Tien Shan mountains towards Kashgar, in the Tarim Basin.
News reached Wang Zhengjian not only of the defeat and death of Feng Changqing, but also of the incoming Tibetan army. The military governor took the defense of Kashgar upon himself, and left Qiuci with an army of 50k formed by Chinese, Turkic and Tocharian men.
What Wang Zhengjian was not aware of, however, was that the Tibetans were not heading for Kashgar to aid the Muslims. Instead, their objective was the city of Khotan.
Abu Muslim was forced to wait a few days outside Kashgar for the Ramadan of 138 AH to end. This gave Wang extra time that was key for the preparation of the city’s defenses. However, it also gave him enough time to realize that the Tibetans were not there or anywhere near the city. After the end of the battle, he would realize that Khotan had fallen to them.
In the first week of Shawwal, Abu Muslim finally launched the attack of the Islamic forces on the city. The siege lasted several months, but eventually one of the gates was opened by a group of Tocharians, both locals and soldiers. The cut of supplies of food and water had been devastating for the city’s population, which only got worse when a plague began to spread. The desperation led the locals to let the Muslims in, in the hope that they could finally let water and food in the city.
The Battle of Kashgar was a complete massacre. Wang Zhengjian barely managed to escape with 15k men, while the rest were either killed or captured by the Caliphal army. However, the starving civilians were left alone as per Islamic Law. Abu Muslim stayed at Kashgar dealing with the new prisoners and overseeing the recovery of the city. Many of the Karluks that were under the Iranian general’s command settled there, and began to spread Islam to the population.
By early 139 AH, Abu Muslim had also captured Aksu, as the Chinese had escaped directly to Qiuci. Wang had immediately sent a letter to Chang’an, requesting the emperor for major reinforcements as the Caliphal armies, and now the Tibetans as well, were steamrolling them and threatening to capture all of the Central Asian territories of the empire.
The letter reached emperor Xuanzong and his court. However, the chancellor, Yang Guozhong, was skeptical of such information. After all, Tang China had been almost invincible in Central Asia, with a force so great that no one else in the region could challenge them. He believed that Wang was lying to get more resources from the imperial court and further his own interest and benefit. Xuanzong approved reinforcements, but a number of barely 20k men, mostly inexperienced young men with mediocre training. However, they would not be able to arrive on time.
Abu Muslim met with the Tibetan armies at Aksu, and then finally both armies marched together towards Qiuci, where Wang awaited for both them and his reinforcements. Many Chinese officials were greatly intimidated by the massive army formed by the joint Muslim and Tibetan forces. So much so that many began to plead to their superior, the military governor of Anxi, that he surrender to avoid a massacre. Wang, however, refused to do so. Instead, he prepared his army, greatly inferior in numbers, to defend the city to the bitter end.
Taking the matter into their own hands, said officials sought to negotiate with Abu Muslim. They sent a small diplomatic delegation, which delivered the message of their desire to surrender the city peacefully. The Iranian general sent the delegation back with his own representatives, who told them that they would accept their surrender.
As the armies approached the city, chaos emerged in the fortresses. Initially, the Chinese army began to shoot arrows at the Tibetans and Muslims, which confused them. Naturally, they began to shoot back and retreated several steps to avoid more bloodshed. However, at some point, the officials who had previously communicated with the Muslims opened the gates, essentially surrendering the village.
What ensued, however, was a brutal massacre of those inside the city. In only a few hours, the city had fallen, while Wang and most of his men were killed. Some officials escaped the city and ran all the way to Dunhuang. From there, they sent a letter to the imperial court at Chang’an informing them of the fall of Qiuci and the imminent arrival of the armies across the Tarim Basin. The news came in like a bucket of cold water to the court, who immediately began to gather their military forces, over 100k, under the command of the prominent generals and jiedushi Guo Ziyi and Li Guangbi. However, this took time, a few months to be more exact.
In this time, the Tibetans had once again conquered and occupied all of the Tarim Basin without much resistance following the fall of Qiuci. A few thousand Tocharians even joined them in their campaigns against the Tang Chinese. Now, the Tibetans, still aided by Abu Muslim and his diverse army of Arabs, Nubians, Iranians and Karluks, were marching rapidly towards the city of Dunhuang.
The importance of this city could not be understated. It was the point at which the three main routes of the Silk Road connected and then communicated with China. Its capture could mean cutting Tang China’s way to communicate with the rest of Central Asia, and would signify a massive strategic loss. From Dunhuang, the Tibetans intended to launch a major military campaign into the core territories of China, with the final objective of capturing the capital of Chang’an.
Unfortunately for the Tang, however, their massive military force with perhaps their best general of the era at its head would not arrive in time.
In the first month of 141 AH, the joint Tibetan-Muslim army arrived at the walls of Dunhuang. An endless horde of soldiers is what the garrisons of the city could see from the walls. It very quickly became evident that, without the reinforcements from Chang’an, they had very little to do.
The city fell after an intense siege that lasted a couple of months. A small Tibetan force was left behind, while most of the armies continued their march. The city of Jiuquan was captured shortly after, though they stayed there for longer due to the exhaustion from the Muslim troops.
Battle of Shanzhou
The two immense armies would only finally meet near the city of Shanzhou. In early 142 AH, Abu Muslim finally met face to face with Guo Ziyi and the Khitan Li Guangbi. Both were experienced generals, with several victories and impressive reputations behind them. Now, the armies possessed similar numbers. The Muslims had lost several thousands on the way, but the Tibetan forces added an even greater army to their forces, with their own set of commanders.
It would be in Shanzhou that the three empires would finally have a proper clash, with their best generals and armies on the table.
The Battle of Shanzhou would go down in history as one of the biggest clashes of empires in the time period. And certainly, as one of the most important battles as well.
Ultimately, Abu Muslim and the Tibetan generals outclassed Li Guangbi, who was overrun by the Islamic armies. The Karluk cavalry destabilized their flank, while the Iranian general’s infantry aggressively pushed forward. Finally, the Khitan general was slain in battle, and almost half of the Chinese army fell into chaos, while all the weight of the battle fell on Guo Ziyi.
The rest of the battle was prolonged for almost two days, with Guo Ziyi managing to push back for short periods of time. However, the battle ended in a Chinese defeat, as the Chinese general was cornered and forced to retreat to avoid even more losses. It’s estimated that around half of the Chinese army was killed in battle, while the Tibetans and Muslims lost around 40 thousand men.
Guo Ziyi retreated and crossed the Yellow River, heading towards Fengxian, which was right next to the capital. However, the combined Muslim and Tibetan armies attempted an ambush while they were doing so. This time, the Chinese general managed to lure them into the river, and caused important casualties to the allied forces. This forced them to stay behind, while the Chinese continued their retreat to Fengxian.
When Guo Ziyi and his army reached the city, the word spread very quickly until it reached Chang’an itself. Yang Guozhong, still the principal chancellor at the time, was furious. Not only had he lost at Shanzhou, which was already catastrophic enough, but he had run directly towards an important city near the capital. He immediately ordered the destitution of the general, but the old emperor Xuanzong was against this, as he was fond of the renowned general, and greatly trusted his abilities. Instead, the old emperor sent reinforcements towards Fengxian, completely oblivious to how grave the situation really was.
The chancellor, dissatisfied with the actions of the complacent emperor, began plotting against him. His cousin, the beautiful Yang Guifei, had already bore the emperor three children: two daughters and a son. The latter was now the favorite to succeed him, in spite of the former crown prince Li Heng. This left the Yang family, and namely Guozhong himself, in a very good position for power.
Meanwhile, however, Ziyi prepared the defenses of the city, ready to face off and finally stop the advancement of the foreign invaders. Time passed, and the invaders were taking longer than expected. Though, what did not take long to arrive in the city of Fengxian were the rumors that Yang Guozhong wanted to execute Guo Ziyi for his failures. Naturally, the general was not pleased with these rumors.
Only a week before the Tibetan and Muslim armies would arrive, Guo Ziyi simply abandoned the city, and left clear instructions of surrendering to avoid unnecessary bloodshed. He, alongside several thousands of men loyal to him, fled to Dongdu (Luoyang), where the former crown prince, Li Heng, had been residing ever since being stripped from his titles. There, Guo Ziyi submitted to the former crown prince, and joined him in his plans to overthrow the Yang family.
When the Tibetans and the Caliphal army arrived, they were surprised to see Fengxian without defense. Instead, the city peacefully surrendered, and Abu Muslim made sure such a surrender was respected. Several Muslims stayed behind in the city, deciding to settle there, impressed by the city. The rest, however, continued towards Chang’an, and would then finally return to the lands of the Caliphate after several decades.
Fall of Chang’an
The Tibetans, having taken the initiative of the campaign ever since Shanzhou, led their Muslim allies towards the weak and almost defenseless capital of Chang’an.
Emperor Xuanzong and his court had received the news of the capture of Fengxian, and immediately began to evacuate all relevant officials and themselves from the city. The abandonment of Chang’an was a shameful act that the local people of the city greatly resented, while many military officials began to doubt the ability of the emperor to rule.
The court would flee to Jiannan Circuit, specifically seeking refuge in Chengdu.
That is why in Ramadan of 143 AH, Abu Muslim and his Tibetan allies marched on Chang’an almost unopposed. Astonishingly, and in the middle of a Golden Age in the Tang empire, the capital had fallen without resistance, while the emperor was hiding in Chengdu, and the crown prince was plotting an insurrection in Luoyang.
Trisong Detsen, the young Tsenpo of the Tibetan empire, would then negotiate a surrender with the old emperor Xuanzong. The Tibetans would then occupy the Tarim Basin and most of the Anxi protectorate, as well as the Longyou Circuit. This was a massive territorial loss, as the Tang found itself completely cut off from Central Asia and its domination over the most important routes of the Silk Road.
As for the Caliphate, they seized the territories west of the Tarim Basin, which included the Mengchi, Sogdiana and Tokharistan protectorates; as well as the city of Kashgar, which was gifted to the Karluks as a form of thanking them for their service in the war.
Aftermath
The Tang dynasty was left in the worst position it had ever been in. Not only had they lost most of their territories in Central Asia, and even a core province like the Longyou Circuit, but the court intrigues and great discontent of the officials and jiedushi had finally caught up to the emperor.
Only a few months after the treaty was signed with Trisong Detsen, emperor Xuanzong died in mysterious circumstances. Yang Guozhong is normally suspected to have been the culprit, as Yang Guifei mourned the death of her lover quite deeply. Her young son, Li Zhang, who was barely 5 years old, was crowned as the new emperor, and would later be given the temple name of Daizong.
This naturally came with great controversy, and soon a civil war began between the Yang family and the crown prince, Li Heng, supported by Guo Yizi and other prominent generals and jiedushi.
As for the Tibetan empire, the young Tsenpo Trisong Detsen would focus on more internal matters in the following decades. Stabilizing the new territories, while adapting them into the empire; as well as introducing Buddhism to Tibet and making it the official religion. His reign would come to be recognized as the beginning of a Golden Age for the Tibetan empire.
Later on, in the final decades of his long rule, the Tsenpo would go on to pursue more military campaigns to further expand his rich and powerful realm. Trisong Detsen would also continue to cultivate its positive relations with the Caliphate, consolidating an alliance by marrying off a daughter of his to Musa al-Kazim, one of the younger sons of Ja’far as-Sadiq; while the Tsenpo himself married a daughter of Ja’far.
Abu Muslim and his men were received like heroes upon their return to the Caliphate. After almost 7 years of an intense campaign across Central Asia, ~40k Muslim men returned to their homes. They brought with them several hundred Chinese and Sogdian prisoners, formerly officials or soldiers of the Tang empire, who would go on to play an important role in the court of the Caliph in Kufa and in several other of the major cities of the Caliphate.
Ja’far as-Sadiq had begun the construction of the Mosque of Isma’il in Samarkand, in honor of his son who gave his life defending the lands of the faithful. He would then order the construction of a new mosque in Merv, which was given the name of Abu Muslim. The latter was also named the new governor of Transoxiana.
The lands further into Central Asia were given to the now Muslim Karluks, who chose the city of Kashgar as their capital. There, the Caliph granted them the resources to build a magnificent mosque, while the territory came to be recognized as an emirate by the Caliph. A Karluk man who fought alongside Abu Muslim was given the title of Emir; he had taken on the name Ali following his conversion. The Karluks would go on to dominate the region, subjugating other Turkic peoples like the Turgesh while fighting off other powerful groups, like the Uyghurs.
The Caliphal victory in the Central Asian War would allow the spread of Islam to the diverse groups of people that lived in the region. Be it through direct conversion or through syncretism, the presence of Islam in Central Asia became almost as important as that of Buddhism or Manichaeism. Specifically in western Central Asia, most of which was now nominally ruled by the Caliph, Islam became hegemonic.
This victory would also encourage further military endeavors, especially as Abu Muslim was only 42 by the time he returned from his campaign. In fact, only a few years after his return, he would present himself in Kufa in front of the Caliph and the Shura, and would propose a series of campaigns into the Indian subcontinent.