Scholar-officials, also known as literati, scholar-gentlemen or scholar-bureaucrats (Chinese: ; pinyin: ) were politicians and government officials appointed by the emperor of China to perform day-to-day political duties from the Han dynasty to the end of the Qing dynasty in 1912, China's last imperial dynasty. After the Sui dynasty these officials mostly came from the scholar-gentry ( sh?nshì) who had earned academic degrees (such as xiucai, juren, or jinshi) by passing the imperial examinations. The scholar-officials were schooled in calligraphy and Confucian texts. They dominated the government and local life of China until the early-20th century.
Since only a select few could become court or local officials, the majority of the scholar-literati stayed in villages or cities as social leaders. The scholar-gentry carried out social welfare measures, taught in private schools, helped negotiate minor legal disputes, supervised community projects, maintained local law and order, conducted Confucian ceremonies, assisted in the governments collection of taxes, and preached Confucian moral teachings. As a class, these scholars claimed to represent morality and virtue. The district magistrate, who by regulation was not allowed to serve in his home district, depended on the local gentry for advice and for carrying out projects, which gave them the power to benefit themselves and their clients.
Theoretically, this system would create a meritocratic ruling class, with the best students running the country. The examinations gave many people the opportunity to pursue political power and honor -- and thus encouraged serious pursuit of formal education. Since the system did not formally discriminate based on social status, it provided an avenue for upward social mobility. However, even though the examination-based bureaucracy's heavy emphasis on Confucian literature ensured that the most eloquent writers and erudite scholars achieved high positions, the system lacked formal safeguards against political corruption, only the Confucian moral teachings tested by the examinations. Once their political futures were secured by success in the examinations, officials were tempted by corruption and abuse of power.
The Princeton scholar Benjamin Elman writes that some criticized the examination elite as hindering China's development over the last century but that preparing for the examinations trained government officials in a common culture and that "classical examinations were an effective cultural, social, political, and educational construction that met the needs of the dynastic bureaucracy while simultaneously supporting late imperial social structure."