Six doors in Beijing are the collective names of the three legal departments. Yamen refers to the punishments department, Dali Temple and Douchayuan in Ming and Qing Dynasties, the administrative department, punishments department and Zheng Xuan Academy in Yuan Dynasty, Dali Temple, punishments department and Yushitai in Song Dynasty, only Dali Temple and punishments department in Tang Dynasty, Tingwei, Yushicheng and Li Si in Han Dynasty, and Shang Junshu in Qin Dynasty.
Extended data:
Six doors are the collective name of the three legal departments of the imperial court, and each dynasty is different. Because the ancient yamen was generally three rooms, each with two secret doors, which was called "six doors" for short. It first appeared as a secret organization in the Tang Dynasty.
Six departments had just been formed. In order to solve the remnants of the late Sui Dynasty and the desperate gangs on the rivers and lakes, Emperor Taizong ordered the punishments to quietly set up "six doors". Six doors select some tough teenagers from the crowd for training, and then send them to perform tasks after the training is completed. At that time, these teenagers also had a * * * name of the same name-Eagle Dog.
Baidu encyclopedia-six doors