The answer would be Confucianism. Hope I helped. :)
Confucianism was the foundation of the civil service exams during the Han, Tang, and Song Dynasties. These exams, established to recruit government officials, emphasized knowledge of Confucian texts and principles. Over time, they became the main path to official posts, influencing Chinese society by promoting a scholar-official class trained in Confucian ideals.
;