During Emperor Wendi of Sui Dynasty (58 1-604), officials were selected by subject examination. During Yang Di's reign (604-6 18), Jinshi was formally established. In the fifth year of Tang Gaozu Wude (622), the first scholar Sun was born in the history of China. Emperor Taizong (reign time: 626-649) inherited and developed the imperial examination system. At the end of Zhenguan, Emperor Taizong expanded the imperial examination department and raised the imperial examination level, which undoubtedly promoted the prosperity of the imperial examination system in the middle and early Tang Dynasty. Empress Wu Zetian (reign time: 690-705) paid special attention to the imperial examination, created the "palace examination" and "paste name" of later generations, promoted the further development of the imperial examination articles in the Tang Dynasty, and made an exception to open a military department. During Xuanzong period of Tang Dynasty (reign time: 7 12-756), Jinshi changed to take part in the examination of poetry and fu, and poetry and fu became the most important examination content, and Jinshi became the most important examination subject in Tang Dynasty. Emperor Taizong, Wu Zetian or his grandson Tang Xuanzong all attached great importance to the imperial examination and its system, but their obsession with the imperial examination system was not as good as their descendant Chen Li.