After Chen was conquered, Sui began to apply its laws over Chen's former territory—which brought resentment from the gentry, as they had been treated preferentially under Chen and its predecessor dynasties in the south. In 590, rumors spread that Sui planned to relocate Chen subjects to the Guanzhong region, leading to widespread but disorganized rebellions. Emperor Wen sent army to suppress the uprisings, and within the year, the rebellions were quelled. In 591,
Tuyuhun sought peace and its khan Murong Shifu () sent his daughter to be a concubine for Emperor Wen. Emperor Wen accepted the peace offer but declined the offer of Murong Shifu's daughter. In 592, Emperor Wen reduced taxes due to an abundance of food and silk in government stores, and he also sent messengers across central China to redistribute land, providing farming land to the poor. In 593, Emperor Wen commissioned the construction of a summer vacation palace, Renshou Palace (仁壽宮), which is away from capital Chang'an. The palace was completed in 595, and turned out to be more luxurious than expected and caused many deaths during its construction. In 594, due to a famine in the Guanzhong region, Emperor Wen temporarily moved to Luoyang. To share in the suffering of his people, he abstained from eating meat for a year. Late in 594, Crown Prince Yang Guang petitioned Emperor Wen to carry out the ancient ceremonies of worshipping the heaven and earth gods at
Mount Tai. Emperor Wen declined a full ceremony due to its cost but conducted a shortened version in spring 595 to seek blessings for the ongoing drought. Also in spring 595, Emperor Wen ordered that no weapons be held by private individuals and that all of them be collected and destroyed, although he exempted the border provinces from this edict. In 596, Emperor Wen married Princess Guanghua to Murong Shifu, to cement the peaceful relations with
Tuyuhun. In 597, Cuan Wan (), the chief of the Nanning Tribe (南寧夷, located in modern
Qujing,
Yunnan), rebelled. Emperor Wen sent the general Shi Wansui (), the Duke of Taiping against Cuan, forcing him to surrender. Initially, Shi was to take Cuan to Chang'an to be presented to Emperor Wen, but Cuan bribed Shi, and so Shi allowed him to stay. Also in 597, Li Guangshi (), the chief of the aborigine people in Gui Province (桂州, roughly modern
Guilin,
Guangxi), also rebelled. Emperor Wen sent the generals Wang Shiji () and Zhou Fashang () against Li, and Zhou was able to defeat and kill Li. In the same year, Emperor Wen strengthened laws regarding official misconduct and theft. He authorized supervising officials to use canes to punish their subordinates if they felt the legal penalties were insufficient for the misconduct. Additionally, he increased the punishment for theft to death, although this law was later abolished. Still in 597, Emperor Wen's son
Yang Jun the Prince of Qin, the commandant at Bing Province (并州, roughly
Taiyuan,
Shanxi), was poisoned, but not to death, by his wife Princess Cui. After Yang Jun was taken back to Chang'an for treatment, Emperor Wen discovered his wastefulness at his post and removed him from his offices, allowing him to retain only his title of imperial prince. When officials suggested that the punishment against Yang Jun was overly severe, Emperor Wen responded to Yang Su: :
I am the father of just five sons, not the father of all people over the land. If I agreed with you, does that mean I have to draft a Penal Code for the Emperor's Sons
? Even a man as kind as the Duke of Zhou executed his brothers, the lords of Guan and Cai, for their crimes. I am nowhere as capable as the Duke of Zhou, so I can break my own laws? Also in 597, Ashina Rangan, a chef of Göktürks, arrived at Chang'an, and Emperor Wen married Princess Anyi him and awarded Ashina Rangan with treasure, to try to break the bond between him and Ashina Yongyulü, another chef of Göktürks. From this point on, whenever Ashina Yongyulü would prepare to attack, Ashina Rangan would report his plans to Emperor Wen, allowing Sui forces to become prepared. In 598, King
Yeongyang of Goguryeo attacked Ying Province. While the governor of Ying Province resisted the attack, Emperor Wen sent his son,
Yang Liang, the Prince of Han, to lead a campaign against Goguryeo. However, the campaign encountered severe difficulties, including food shortages and a storm that caused significant losses to the navy. Both on land and at sea, Goguryeo forces inflicted heavy losses on the Sui. Despite this, King Yeongyang ceased his raids into China, and Emperor Wen called off the campaign because Sui is unable to commit further resources after the recent setbacks. Also in 598, Cuan Wan rebelled again, and Yang Xiu accused Shi of accepting bribes from Cuan earlier. Emperor Wen considered executing Shi, but ultimately chose only to remove him from his posts. In 599, after Ashina Rangan reported that Ashina Yongyulü was planning to attack, Emperor Wen took preemptive action and had Gao Jiong, Yang Su, and Yan Rong () command a three-pronged attack against Ashina Yongyulü, with Yang Liang in nominal command but not at the frontline. In response, Ashina Yongyulü and Ashina Dianjue made a joint attack against Ashina Rangan, defeating him and largely seizing his tribe. Ashina Rangan fled to Sui, and Emperor Wen treated him as an honored guest. Subsequently, both Gao Jiong and Yang Su engaged Göktürk forces and repelled them. Also in 599, with Wang Shiji's subordinate Huangfu Xiaoxie () accusing Wang of treason after Wang refused to shield Huangfu after he committed crimes, Emperor Wen believed Huangfu and executed Wang. By this time, Yang Yong the Crown Prince had lost the favor of both Emperor Wen and Empress Dugu, because he was overly wasteful and having too many concubines. They therefore considered deposing him and replacing him with Yang Guang. In the winter of 599, Emperor Wen created Ashina Rangan Qimin Khan, and commissioned Zhangsun Sheng to build the city of Dali (大利, in modern Hohhot) to house Ashian Rangan's people, and also sent an army to protect Ashina Rangan. By this time, the Princess Anyi had died, and Emperor Wen married Princess Yicheng () to Ashina Rangan. Thereafter, Ashina Yongyulü was assassinated, and Ashina Dianjue declared himself Bujia Khan. In the summer of 600, Ashina Dianjue attacked Ashina Rangan, and Sui forces fought off Ashina Dianjue's attack, further causing Ashina Rangan to be grateful to Sui. In fall 600, with Yang Guang and Yang Su forming a faction, with tacit support of Empress Dugu, they had Yang Yong's associate Ji Wei () falsely accuse Yang Yong of plotting treason. Emperor Wen deposed Yang Yong and replaced him with Yang Guang. ==
Renshou era==