Before the Sui Dynasty, the selection of officials mainly depended on recommendation or family background. The children of powerful people, regardless of their merits and demerits, are likely to be big officials. Many people with humble origins but real talent and learning cannot serve as senior officials in the central and local governments. The imperial examination system was established in the Sui Dynasty and perfected in the Tang Dynasty. The imperial examination system is a relatively fair selection system, which creates competitive opportunities for scholars in relatively equal and provides more talents for social development.
The role of imperial examination system in Tang Taizong period;
1. Emperor Taizong wanted to recruit talents, on the one hand, to better govern the country, on the other hand, to consolidate his rule.
2. According to the scholars at that time, relatively equal provided them with competitive opportunities, and they could pass the imperial examinations and display their talents.
In the view of rulers, the imperial examination system can attract a large number of talents and serve their rule.