The Complete History of China's Imperial Examination System

For over 1,300 years, the imperial examination system (keju) determined who could serve in government across East Asia, pioneering the idea of selecting officials by merit rather than birth. Here is how it worked, from its founding to its abolition.

The origins of the examination system

First introduced during the Sui dynasty and firmly established under the Tang, the keju replaced the earlier nine-rank system, in which family background largely determined official appointments. Selecting officials by exam performance rather than lineage is considered a landmark shift in the history of East Asian government.

The stages of the examination

By the Ming and Qing dynasties, candidates had to pass through several stages to reach the top rank: provincial examinations, a metropolitan examination held in the capital, and finally a palace examination held in the presence of the emperor.

Juren and jinshi

A candidate who passed the provincial examination was called a juren; one who passed all the way through the metropolitan and palace examinations was called a jinshi. Becoming a jinshi was considered the highest honor of the system, and the title appears often in classical literature as a symbol of achieved success.

Zhuangyuan

The title given to the candidate who placed first in the palace examination. The term is still used idiomatically across East Asia today to describe someone who scores first in any exam or competition.

The bagu essay (eight-legged essay)

A rigidly formatted style of writing required in Ming and Qing dynasty examinations, in which candidates had to structure their discussion of Confucian classics into exactly eight fixed parts. The format drew persistent criticism for prioritizing formal technique over genuine critical thinking or practical ability.

The abolition of the system

Following conflicts with Western powers in the 19th century, the need for a modern education system became increasingly apparent, and the Qing dynasty formally abolished the exam system in 1905. It marked the end of an institution that had lasted more than 1,300 years and a turning point toward modern education.

Merit over birth β€” in theory

Before the examination system, official appointments in China were largely determined by family background. The keju changed this by opening a path, at least in principle, for anyone to enter government service through exam performance regardless of social status β€” a shift widely regarded as a turning point in the history of East Asian bureaucratic government.

A system that spread across East Asia

The examination system spread beyond China to Korea, Vietnam, and other neighboring states, each adapting it to local circumstances. This is part of why expressions equivalent to "placing first in the exam" remain common idioms across multiple East Asian languages today.

Frequently Asked Questions

Was the examination system really open to anyone?

In theory, most men aside from certain excluded groups, such as merchants and those of the lowest social classes, could sit for the exams. In practice, though, the years of education required demanded real financial resources, so candidates from families with some economic means had a significant real-world advantage.

Why was the examination system eventually abolished?

After a series of conflicts with Western powers in the 19th century, it became widely recognized that a system built around classical Confucian texts could not train the kind of talent a modernizing state needed, and the Qing dynasty formally abolished it in 1905 as part of a shift toward a modern school system.