At the zenith of the Tang Dynasty (618–907 AD), the empire was managed not by the whims of a single ruler, but by a highly sophisticated administrative apparatus known as the Three Departments and Six Ministries (Sansheng Liubu). This system established a clear separation of powers—drafting, reviewing, and executing—centuries before similar concepts appeared in the West.

The Power Trinity: Drafting, Reviewing, Executing

Imperial policy underwent a rigorous three-stage process to ensure stability and prevent erratic governance:

  • The Secretariat (Zhongshu Sheng): Responsible for drafting imperial decrees based on the Emperor's intent.
  • The Chancellery (Menxia Sheng): The "Gatekeeper." It reviewed all drafts and held the power of Feng-huan—the right to veto or return a decree if it was deemed harmful to the state.
  • The Department of State Affairs (Shangshu Sheng): Once approved, this department oversaw the practical implementation of laws across the empire.

The Six Operational Ministries

Under the Department of State Affairs, six specialized ministries managed the empire’s "hardware":

  • Personnel: Appointment and evaluation of civil officials.
  • Revenue: Taxation, census, and treasury management.
  • Rites: State ceremonies, foreign diplomacy, and the Imperial Examinations.
  • War: Military administration and defense logistics.
  • Justice: Judicial review and legal enforcement.
  • Works: Public infrastructure, water conservancy, and state engineering.