Scholar-officials, also known as 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 middle of the 20th century. Historian Charles Moore concludes that:
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 local gentry for advice and for carrying out projects, giving them power to benefit themselves and their clients.