Imperial Examination (Keju)
The Chinese exam system that selected officials by written test for thirteen centuries, creating a ruling class of scholars rather than nobles.

For roughly thirteen hundred years, the surest route to power in China ran through an examination hall. Candidates were locked into individual brick cells for days at a time and required to write essays on the Confucian classics. Those who passed at the highest level entered the imperial bureaucracy and could rise to run provinces of tens of millions. This was, by a wide margin, the most sophisticated system for selecting a governing class that existed anywhere in the world before the modern era, and it is a large part of the answer to why China kept reassembling into one empire while Rome fell once and Europe never reunified.
How it worked
The system took shape under the Sui dynasty around 605, when the jinshi or presented scholar degree was created, expanded under the Tang, and became the dominant route to office under the Song, who added anonymized marking and used the new technology of printing to spread the curriculum. From the Ming onward it had a rigid three-tier structure. County-level exams produced licentiates who gained local status and tax privileges. Provincial exams, held every three years, produced juren, who were eligible for office. The metropolitan and palace examinations in the capital produced the jinshi, the elite of the elite, ranked personally by the emperor.
The odds were brutal at every stage. In the Ming and Qing, hundreds of thousands sat the qualifying exams in a cycle and a few hundred emerged as jinshi. Men sat repeatedly into middle age and beyond. The content was narrow: the Four Books and Five Classics as interpreted by the Song philosopher Zhu Xi, written from the fifteenth century onward in the eight-legged essay, a form so tightly prescribed in structure, parallelism, and length that it functioned as a test of discipline as much as thought.
That narrowness was not a flaw in the eyes of the state. The exam was not designed to produce specialists. It was designed to produce a nationwide class of men who had spent their youth absorbing the same texts, the same moral vocabulary, and the same view of what a good official does.
What it built
The consequences run through everything. It gave China a governing elite defined by credential rather than birth, which meant no hereditary aristocracy ever entrenched itself against the throne the way European nobilities did. It gave the empire administrative uniformity across an enormous territory, since an official posted from one end of the country to the other shared a written language and a canon with his colleagues. It gave the dynasty legitimacy, because talented and ambitious men had a path into the system rather than a reason to overthrow it.
It also created a real, if narrow, channel of mobility. Some peasant families pooled resources over generations to educate one promising son, and the folklore of the poor boy who topped the exams was not entirely folklore. Preparation was expensive enough that the gentry dominated the results, but the door was legally open to almost any male commoner, which was more than could be said for anywhere in Europe at the time.
The system exported. Korea's Joseon dynasty ran its own version, Vietnam ran another, and both produced scholar-official classes on the Chinese model. When British reformers designed a competitive entrance exam for the Indian Civil Service and then the home civil service in the 1850s, they knew about the Chinese precedent and cited it. The idea that the state should hire by examination rather than by patronage reached the modern West from China.
The reckoning
The failures cut just as deep. The curriculum was moral and literary. It contained no mathematics, no science, no engineering, no foreign languages, and after the fifteenth century very little that was new. An empire being taken apart by steamships and rifled artillery was still selecting its administrators on their command of a fourteenth-century commentary on a classical text.
And the losers mattered. Hong Xiuquan failed the county examinations repeatedly, suffered a breakdown, concluded he was the younger brother of Jesus Christ, and led the Taiping Rebellion, which killed perhaps twenty million people. Sun Yat-sen, Chiang Kai-shek, and Mao Zedong all belonged to a generation that came of age when the ladder was breaking or gone.
The Qing abolished the examination system in 1905, hoping to modernize faster by sending students to Japanese and Western schools. It may have been the single most destabilizing reform they ever made. Millions of educated men who had oriented their entire lives toward the exams suddenly had no route into the state, and the gentry class that had bound the provinces to the dynasty lost its reason to stay bound. Six years later the dynasty fell.
The echo is loud. Modern China's gaokao, the university entrance examination taken by around ten million students a year, is treated with the same national seriousness and produces the same anxieties about a single test deciding a life. The Party recruits its cadres through competitive examination too. The idea that rule belongs to those who prove themselves on paper survived the empire that invented it.