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 mid-20th century. The American philosopher and historian Charles Alexander Moore concluded:
Generally speaking, the record of these scholar-gentlemen has been a worthy one. It was good enough to be praised and imitated in 18th century Europe. Nevertheless, it has given China a tremendous handicap in their transition from government by men to government by law, and personal considerations in Chinese government have been a curse.
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.