Yang Guang is the second son of Emperor Wen of the Sui Dynasty, and his mother is Queen Dugu. In 581, he was granted the title of King of Jin. In 588, he led the army of Chen as a marching marshal and destroyed Chen the following year. After that, he stayed in Yangzhou for nearly ten years, paying courtesy to Jiangnan scholars and eminent monks, and appeasing the south. He deliberately showed frugality, benevolence and filial piety, befriended Yang Su, and won the favor of Queen Dugu. In 600, he replaced his brother Yang Yong as Crown Prince.
After taking the throne, he built the eastern capital of Luoyang, excavated the Grand Canal with Luoyang as the center and reached Zhuojun in the north and Yuhang in the south. He built the Great Wall, established the Jinshi Department, and promulgated the "Daye Law". He also patrolled the Turks in the north and Zhangye in the west, managed the Western Regions, and received envoys and business travelers from various countries. The country was at its peak. But he was so happy about his achievements that he visited frequently, built projects and wars one after another, and used the people's power almost endlessly.
From 612 to 614, he personally conquered Goguryeo three times, and lost more than 300,000 people in the first time. Civil uprisings broke out in various places. In 613, Yang Xuangan raised an army and the ruling group began to split. In 615, he was besieged by the Turks in Yanmen. In 616, he went south to the Yangtze River and never returned north, and the heroes in various places separated themselves. In March 618, the Xiaoguo army accompanying him, led by Yuwen Huaji and others, launched a mutiny and hanged him until he was fifty years old.
Emperor Yang of the Sui Dynasty was a talented monarch. He built the Eastern Capital, dug the Grand Canal, improved the imperial examinations, and managed the Western Regions. Many of his actions met the needs of N&S exchanges after unification. The Grand Canal benefited future generations for more than a thousand years. However, he was so overjoyed at his achievements that he did not care about the power of the people. For more than ten years, he put huge projects, frequent patrols and expeditions on the people at the same time. Three expeditions to Goguryeo eventually led to chaos in the world. The Sui Dynasty Second Emperor, who was in great power for a while, died, which became a warning for the emperors and ministers in the early Tang Dynasty.