Its origin can be traced back to the Tang Dynasty, when Emperor Xuanzong selected outstanding talents from literary attendants to serve as Hanlin bachelor, specializing in handling extremely confidential documents directly issued by the emperor, such as the appointment and removal of prime ministers and the announcement of punitive orders. Because the Hanlin bachelor participated in confidential information, he had great real power, which was called "internal phase" at that time. The chief Hanlin bachelor's degree is called Chengzhi. In the Northern Song Dynasty, the Hanlin bachelor began full-time study. In the Ming Dynasty, as the highest official of Hanlin, Bachelor of Hanlin was in charge of Wen Han and consulted the emperor. His real power was equivalent to that of prime minister.
nature
The Emperor's Literary Attendant: The Imperial Academy was established in the Tang Dynasty, originally for people with artistic talent. However, since Xuanzong of the Tang Dynasty, it has evolved into an important institution specializing in drafting secret imperial edicts, and the people in the courtyard are called Hanlin Bachelor. The reform in Ming and Qing Dynasties was selected from the scholars. Imperial academy (or Hanlin Academy) was established in China in the Tang Dynasty for people with various artistic talents. In the early Tang Dynasty, Emperor Xuanzong of the Tang Dynasty chose courtiers who were good at writing and lived in Hanlin to draft the imperial edict system, and then gradually evolved into an important institution to draft the confidential imperial edict system. The incumbent was called the imperial edict.