The Three Departments and Six Ministries system was the main central government structure in imperial China from the Sui dynasty to the Yuan dynasty. It was also used by Balhae and Goryeo in Manchuria and Korea, and very likely the Lý dynasty and the Trần dynasty in Vietnam as well. The Three Departments were the top-level offices of the administration. They were the Secretariat, responsible for drafting policy, the Chancellery, responsible for reviewing policy, and the Department of State Affairs, responsible for implementing policy. The former two were loosely joined as the Secretariat-Chancellery during the late Tang dynasty, Song dynasty and Goryeo. The Six Ministries were direct administrative organs of the state. They were the Ministries of Personnel, Rites, War, Justice, Works, and Revenue. They were under the Department of State Affairs until the Yuan dynasty. The Three Departments were abolished by the Ming dynasty, but the Six Ministries continued under the Ming and Qing, as well as in Vietnam and Korea.
Three Departments and Six Ministries during the [Tang dynasty]
Early history
Before the institution of the Three Departments and Six Ministries, the central administrative structure of the Qin and Han dynasties was the Three Lords and Nine Ministers system. Nonetheless, even then, offices which fulfilled the same functions as the later three departments were already in existence. The Department of State Affairs was first devised during the Qin dynasty, originally in an archival role. During the reign of Emperor Wu in the Western Han dynasty, the Secretariat's office was also instituted, as a channel of communications between the Emperor's advisors and the government as a whole. By the Eastern Han dynasty, an office of advisors and reviewers had also been set up. By the time of the Cao Wei state, the emperor Cao Pi made use of this base of advisers to officially institute the Secretariat to balance against the powerful Department of State Affairs. This was the first office known as the 'Secretariat' to fulfil functions similar to its later form, drafting imperial edicts. The office of the Chancellery, as a review mechanism, was first instituted during the Jin dynasty and carried on throughout the Northern and Southern Dynasties period, where it often became the most powerful office in the central government.
Three Departments
The Central Secretariat or simply the Secretariat was the main policy-formulating agency that was responsible for proposing and drafting all imperial decrees, but its actual function varied at different times. Under the Song dynasty, as well as under the Liao and Jin dynasties, these organs exercised much of the executive authority of the emperor. Under the Yuan dynasty, the Central Secretariat with enlarged functions stood alone as the sole organ to lead the civil administration in the Yuan realm. This structure was adopted by the early Ming dynasty, but it was abolished after the Hongwu Emperor executed the chancellor Hu Weiyong. The Central Secretariat was discontinued by later rulers.
The Department of State Affairs controlled the six ministries since the Sui dynasty and was the highest executive institution of the imperial government. During the Yuan dynasty, however, the Central Secretariat replaced the Department of State Affairs as the top government agency. In fact, the Department of State Affairs was only occasionally established to handle financial affairs under the Yuan dynasty, such as during the "New Deals" of Emperor Wuzong. This department was never set up again after the Yuan dynasty.
The Chancellery advised the Emperor and the Central Secretariat, and reviewed edicts and commands. As the least important of the three departments, it was discontinued after the Song dynasty. After Hu Weiyong's incident in the early Ming dynasty, the Three Departments and Six Ministries structure was formally replaced by the Six Ministries structure.
Six Ministries
Traditionally, these departments were also translated as "Boards". Each was headed by a Minister or Secretary who was assisted by two Vice-Ministers or Secretaries.
The Ministry of Personnel or Civil Appointments was in charge of appointments, merit ratings, promotions, and demotions of officials, as well as granting of honorific titles.
The Ministry of Revenue or Finance was in charge of gathering census data, collecting taxes and handling state revenues, while there were two offices of currency that were subordinate to it.
The Ministry of Rites was in charge of state ceremonies, rituals and sacrifices; it also oversaw registers for Buddhist and Daoist priesthoods and even the reception of envoys from tributary states; it also dealt with China's foreign relations prior to the establishment of the Zongli Yamen in 1861. It also managed the imperial examinations.
The Ministry of War or Defense was in charge of the appointments, promotions and demotions of military officers, the maintenance of military installations, equipment and weapons, as well as the courier system. In times of war, high-ranking officials in the Ministry of Defence also served as strategists and advisers to the frontline commanders. Sometimes, they even served as frontline commanders themselves.
The Ministry of Justice or Punishments was in charge of judicial and penal processes, but had no supervisory role over the Censorate or the Grand Court of Revision.
The Ministry of Works or Public Works was in charge of government construction projects, hiring of artisans and laborers for temporary service, manufacturing government equipment, the maintenance of roads and canals, standardisation of weights and measures, and the gathering of resources from the countryside.
Beneath each Ministry were many Bureaus, bodies responsible for grassroots administration.
Other Departments
Aside from the "Three Departments", there were three others equal in status to them, but they are rarely involved in the administration of the state.
The Department of the Palace was responsible for the upkeep of the imperial household and the palace grounds.
The Department of Secret Books was responsible for keeping books about astronomy and astrology.
The Department of Service was responsible for staffing the palace with eunuchs.