For 1,300 years, any man in China could theoretically become a government official by passing a written test.
The imperial examination system, known in Chinese as keju (科举), was formally established during the Sui Dynasty between 587 and 622 CE. It introduced an alternative to a hereditary system of aristocratic appointments with a standardized written test on Confucian classics, open in principle to any adult male regardless of social status.1
The system became the primary channel for bureaucratic appointment during the Tang Dynasty (618-907 CE) and expanded significantly under the Song Dynasty (960-1279 CE), when merit-based selection reached its zenith. The Song banned members of royalty from holding the highest government positions and mandated that examinations take place every three years.2
The examinations operated on multiple levels: district, provincial, metropolitan, and palace. Candidates progressed through each stage, with the highest degree, jinshi (presented scholar), conferring near-certain appointment to a senior government post. During the Tang Dynasty, the passing rate was approximately two percent.3
Preparation consumed years, sometimes decades. Candidates memorized vast quantities of classical text and composed essays in rigidly prescribed formats. Examinations lasted several days, with candidates confined to individual cells. The personal suffering involved became part of Chinese folklore. Some candidates failed repeatedly into old age. Others took their own lives after failing.3
During the Ming Dynasty (1368-1644), roughly 47 percent of those who passed the highest-level examination came from families with no prior government connections, evidence that the system did produce meaningful social mobility despite its steep barriers to entry.4
The system was abolished in 1905 during the late Qing Dynasty reforms. European missionaries and diplomats had already introduced the Chinese model to Western governments. Britain adopted competitive civil service examinations in 1855, influenced in part by reports of the Chinese system. The United States followed with the Pendleton Civil Service Reform Act of 1883.5 Sun Yat-sen stated directly that the examination systems of most countries were modeled on the British system, and that the British system had its origins in China.6