Scholar-officials, also known as Literati, Scholar-gentlemen, Scholar-bureaucrats or Scholar-gentry (Chinese: 士大夫; pinyin: shì dàfū) were civil servants appointed by the emperor of China to perform day-to-day governance 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. Historian Charles Alexander Moore concluded:
Since only a few could become court or local officials, the majority of the scholar-gentry 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 government's 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.