China chose its officials by essay, not birth, for centuries. From the Tang dynasty onward, a system of written exams replaced a territorial aristocracy with officials selected on how well they had mastered the Confucian classics, and it lasted until the government abolished it in 1905.

The gate of the Jiangnan Examination Hall in Nanjing, where imperial exam candidates sat.
more
江南貢院の正門Licence: CC BY-SA 4.0

The scale of it, by the last centuries of empire, is hard to picture from a modern classroom. During the late Ming and Qing periods, roughly 1400 to 1900, men gathered by the millions every two or three years outside walled examination compounds scattered across the country. Only about one in a hundred of them would ever complete the full academic regimen and win a post in the administrative bureaucracy.

Three exams, each one narrower than the last

Candidates didn’t sit one test. They worked through a series: local exams, then provincial exams, and finally a central imperial exam held in the capital. Most candidates were eliminated at the first two stages, so only “the creme de la creme” reached the imperial exam itself, says Frances Wood, curator of the Chinese collection at the British Library.

The scholar Wang Anshi, who sat the exams in the 11th century, came fourth in the whole of China at the central level, out of a field Wood describes as running into the tens of thousands. That result launched him into a career that would eventually put him at the top of the imperial civil service.

The physical ordeal matched the intellectual one. Some candidates spent three days and nights confined to an examination cell measuring six feet by three, the culmination of years spent on rote learning. What they were tested on was not technical skill but moral knowledge. The set essays drew heavily on the Confucian classics, Wood says, describing the test as one of morality rather than practical skill.

What the system built

Passing did more than land a job. It created, from the Tang dynasty onward, a strong centralised civil service that stood in place of an aristocratic elite rooted in land and territory. Successful candidates became scholar-gentry: men who studied at home between exam levels or while waiting for a posting, and who supported the work of an appointed district magistrate barred by regulation from serving in his own home district. Civil examinations had been instituted as early as the seventh century CE, but it was the Ming and Qing dynasties that made them the hub linking the intellectual, political and economic life of the empire.

That link cut both ways. Local elites and figures at court both tried to shape how the government set the classical curriculum and chose its officials, which made the exam system less a neutral filter than a constantly renegotiated settlement between the throne and the gentry class it depended on. By the 1700s, that settlement had become famous well beyond China. It was held up as a model by the Physiocrats and other activists seeking to reform government in Europe, particularly in France.

When the exam met an economy it couldn’t test for

By the 11th century, under the Song dynasty, the system was already showing strain. China’s economy had grown far more commercialised than before. The historian Peter Bol of Harvard University says the money supply increased thirtyfold during this period, as merchant networks spread and villages that had once been self-sufficient joined a cash economy the state no longer directly controlled.

The exams, built to test knowledge of Confucian virtue, had little to say about running that kind of economy, or about the tax evasion by large landowners that was pushing more of the burden onto the poor. The Song court also faced Jin and Mongol pressure on its northern borders, which drove up defence spending and inflation at the same time.

Wang Anshi got a chance to act on all of this in 1067, when a young emperor eager for new ideas took the throne and brought him into the top ranks of government. Wang set about diluting the exam’s Confucian weighting, cutting some traditional subjects and adding practical ones such as mathematics and medicine, according to Xun Zhou, a historian at the University of Hong Kong. Once those officials were in, Wang asked them practical questions: how to improve agriculture, extend credit to farmers, and keep goods moving.

The system Wang tried to reshape outlived his changes by more than eight centuries. China did not abolish the classical examination system until 1905. From the seventh century until then, it decided who was fit to govern China.