In politics, Sui practiced “the System of Three Cabinets and Six Departments” in the central government. The three cabinets were: Zhongshu Sheng - the legislative bureau which was the policy making organ of the state in charge of drafting out orders and deciding organizations; Menxia Sheng - the Chancellery of the state which was the deliberation organ of the state; and Shangshu Sheng - the executive bureau which was the administrative organ of the state. The six departments were with Libu (personnel), Hubu (revenue), Libu (rites), Bingbu (war), Xingbu (justice) and Gongbu (works), which were all set up under the Shangshu Sheng to deal with daily affairs. This system was followed by almost every later dynasty since then.
In the local government, Sui simplified the three-grade system - state, prefecture and counties into a two-grade system, carrying out “the System of States and Counties”. By doing so, Sui redressed the overfull organization abuses, restrained political corruption, and saved government expenditures. Sui also ordered that local government officials must be assessed every year, that their term of service at the same place couldn't exceed three years, and that the officials mustn't be from other places. All these measures helped to strengthen the central government's control over the local places, and stopped the local depots from monopolizing the local powers.
At the same time, in selecting government officials, Sui prescribed that every state had to select three excellent candidates whatever family background they were born to, and send them to the central government every year. Those eligible people would be appointed as officials after the government examinations. It was the beginning of “the Imperial Examination System”.
Additionally, Emperor Wen ordered Gao Wan to make new state codes based on the old state rules of Northern Qi and Northern Zhou. In 583, he let Su Wei adjust the codes again, and then Kaihuang Codex was produced. The book was divided into 12 volumes, in which there were 500 punishments subdivided into five kinds and 20 grades and some abominations like scourging and splitting were abolished. Kaihuang Codex laid the groundwork for the codes of the later dynasties.