Foreign affairs under Yangdi
In addition to these farsighted construction works, Yangdi also pursued an active foreign policy. An expedition to the south established sovereignty over the old Chinese settlement in Tongking and over the Champa state of Lin-yi in central Nam Viet (present-day Vietnam). Several expeditions were sent to Taiwan, and relations with Japan were opened. Tuyuhun people were driven out of Gansu and Qinghai, and Sui colonies were established along the great western trade routes. The rulers of the various petty local states of Central Asia and the king of Gaochang (Turfan) became tributaries. A prosperous trade with Central Asia and the West emerged.
The principal foreign threat was still posed by the Turks. By the early 7th century, these peoples had been completely split into the eastern Turks, who occupied most of the Chinese northern frontier, and the immensely powerful western Turks, whose dominions stretched westward to the north of the Tarim Basin as far as Sāsānian Persia and Afghanistan. During the early part of Yangdi’s reign, the western Turks, whose ruler, Chuluo, was half-Chinese, were on good terms with the Sui. In 610, however, Yangdi supported a rival, Shegui, who drove out Chuluo. The latter took service, with an army of 10,000 followers, at Yangdi’s court. When Sui power began to wane after 612, the western Turks under Shegui gradually replaced the Sui garrisons in Central Asia and established control over the states of the Tarim Basin. The eastern Turks had remained on good terms with the Sui, their khans being married to Chinese princesses. In 613 Pei Ju, Yangdi’s principal agent in dealing with the foreign states of the north, attempted unsuccessfully to dethrone the eastern Turkish khan and split up his khanate. Relations with the Turks rapidly deteriorated, and in the last years of his reign Yangdi had to contend with a hostile and extremely powerful neighbour.
His most costly venture was a series of campaigns in Korea. At that time Korea was divided into three kingdoms, of which the northern one, Koguryŏ, was the most important and powerful. It was hostile to the Chinese and refused to pay homage to Yangdi. Yangdi made careful preparations for a punitive campaign on a grand scale, including construction of the Yongjiqu Canal from Luoyang to Beijing. In 611 the canal was completed; a great army and masses of supplies were collected, but terrible floods in Hebei delayed the campaign.
During 612, 613, and 614 Yangdi campaigned against the Koreans. The first two campaigns were unsuccessful and were accompanied by the outbreak of many minor rebellions in Shandong and southern Hebei. The severe repression that followed led to outbreaks of disorder throughout the empire. In 614 yet another army was sent into Korea and threatened the capital at P’yŏngyang, but it had to withdraw without a decisive victory. These futile campaigns distracted Yangdi’s attention from the increasingly vital internal problems of his empire, involved an immense loss of life and matériel, and caused terrible hardships among the civilian population. They left the Sui demoralized, militarily crippled, and financially ruined.
At that point, Yangdi decided to secure his relations with his northern neighbours. His envoy, Pei Ju, had continued to intrigue against the eastern Turkish khan, in spite of the fact that the Sui were no longer in a position of strength. When in the summer of 615 Yangdi went to inspect the defenses of the Great Wall, he was surrounded and besieged by the Turks at Yanmen; he was rescued only after a month of peril.
Rebellions and uprisings soon broke out in every region of the empire. Late in 616 Yangdi decided to withdraw to his southern capital of Jiangdu, and much of northern China was divided among rebel regimes contending with one another for the succession to the empire. Yangdi remained nominally emperor until the spring of 618, when he was murdered by members of his entourage at Jiangdu. However, by 617 the real powers in China had become the various local rebels: Li Mi in the area around Luoyang, Dou Jiande in the northeast, Xue Ju in the far northwest, and Li Yuan (who remained nominally loyal but had established a local position of great power) in Shanxi. At the beginning of 617, Li Yuan inflicted a great defeat on the eastern Turks and thus consolidated his local power in the impregnable mountainous area around Taiyuan. In the summer of 617 he raised an army and marched on the capital with the aid of the Turks and other local forces; Chang’an fell at year’s end. Xue Ju’s northwestern rebels were crushed, and the armies of Li Yuan occupied Sichuan and the Han River valley. A Sui prince, Gongdi, was enthroned as “emperor” in 617, while Yangdi was designated “retired emperor.” In the summer of 618, after Yangdi’s death, Li Yuan (known by his temple name, Gaozu) deposed his puppet prince and proclaimed himself emperor of a new dynasty, the Tang, which was to remain in power for nearly three centuries.