The Temple of Literature, known in Chinese as the wénmiào (文庙) or Kǒngmiào (孔庙) when dedicated to Confucius himself, is the shrine where imperial China honoured Confucius and the worthies of learning. Found in almost every county seat, the temple was the ritual counterpart to the examination system that selected the empire's officials. Unlike a Buddhist monastery, it held no images of gods but tablets inscribed with names, and its centred, axial layout mirrored the order Confucius taught. The greatest example is the family temple at Qufu in Shandong, the sage's birthplace, but hundreds of lesser wenmiao once anchored the cultural life of towns across the country.
Confucius and the Birth of the Cult
Confucius (551–479 BCE) was a teacher and statesman whose followers compiled his sayings in the Analects. Shortly after his death, his house at Qufu was turned into a memorial, and by the Han dynasty Emperor Wu made Confucian doctrine the state creed. Honouring the master became a duty of government.
Over centuries the humble Qufu dwelling grew into a vast walled complex of halls and courtyards. Successive dynasties expanded it, and in 1302 the Yuan court built the first standardised temple plan that local officials then copied nationwide.
Layout and the Axis
A wenmiao follows a strict south-facing axis. One entered through a memorial arch and a screen wall, passed the "Lingxing Gate," then a built-up bridge over a crescent pool—the bibī chí—and arrived at the main hall, the Dàchéng diàn (Hall of Great Achievement).
Behind the main hall lay the apricot terrace and the sage's resting place; side courts held tablets of worthy officials, scholars, and local worthies. The symmetry embodied the Confucian ideal of a well-ordered society radiating from a single centre.
The Hall of Great Achievement
The Dacheng dian is the temple's heart, a high-roofed hall on a stone terrace where the principal rites were held. Inside, a central tablet to "The Most Holy Ancestral Teacher Confucius" was flanked by tablets of his disciples and the Four Sages—Yan Hui, Zengzi, Zisi, and Mencius.
The hall was furnished with ritual bronze vessels, a throne-like chair, and often a canopy. On the two great annual sacrifice days, officials in court dress offered meat, silk, and music, re-enacting the solemn liturgy of state Confucianism.
The Crescent Pool and the Screen Wall
Almost every wenmiao has a semi-circular pool crossed by a single bridge. The shape, borrowed from the ancient Zhou court, symbolised the gathering of learning, and successful examination candidates were said to have "swum through the pool."
A screen wall or "wall of ten thousand characters" often stood before the gate, both to shield the sacred interior from street view and to honour the depth of Confucius's learning. Its presence signalled that one was entering a place of letters, not commerce.
Rites and the Sacrifice
Twice a year the local magistrate led the jìtiān sacrifice to Confucius, complete with music of eight rows and six columns of dancers—a privilege normally reserved for emperors. The ceremony affirmed the bond between moral learning and political authority.
Students prayed at the temple before exams, and top graduates inscribed their names on a adjacent "Forest of Steles." The ritual life thus tied personal ambition to public virtue in a single repeated act.
The Temple and the Examination System
The wenmiao stood beside the xué gōng, the Confucian school, and near the examination compound. The trio—temple, school, and exam hall—made the county seat the engine of social mobility. A poor boy could, in theory, rise to minister through this pipeline.
Because appointments depended on classical mastery, the temple was not nostalgic but instrumental. To honour Confucius was to honour the very system that staffed the bureaucracy, and the building advertised the town's commitment to learning.
Notable Surviving Examples
The Qufu Confucius Temple is by far the largest, with nine courtyards and over three hundred buildings, listed as a World Heritage site. The Nanjing and Beijing imperial academies also contained grand wenmiao compounds.
Many provincial and county temples survive in whole or part—in Pingyao, in Jianshui, and across Fujian and Yunnan—often still used for ceremonies and as museums of local education.
Legacy Today
After the exams ended in 1905 and turbulent politics followed, many temples fell into disuse. Recently there has been a strong revival: restored halls host coming-of-age rites, the first-day-of-school bows to Confucius, and public lectures on the classics.
The wenmiao endures as a symbol of China's reverence for education and self-cultivation. In an age of rapid change, its quiet courtyards still argue that a civilisation is built first of all on learning.
The Temple and Modern Education
When the civil-service exams ended in 1905, the wenmiao lost its daily purpose, and many were converted to schools, libraries, or storehouses. Ironically, the temple's own school wing often became the new classroom, so learning continued on the same ground under a different creed.
The wenmiao thus completed a circle: born to serve a system of exams, it now serves the deeper idea beneath them—that to honour study is to honour the republic of minds on which any society rests.
In recent decades schools have revived simple rites at the temple: children in robes bow to Confucius before the first term, and communities hold reading festivals in the courtyards. The wenmiao has thus been reborn not as a state cult but as a civic shrine to study itself, fitting its original meaning.
❓ Frequently Asked Questions
What is a Temple of Literature?
It is a Confucian shrine honouring Confucius and model scholars, tied to the imperial examination system.
How is it laid out?
On a strict south axis: gate, bridge over a crescent pool, then the Hall of Great Achievement on a terrace.
Why tablets instead of statues?
Confucian ritual honours the person through inscribed name tablets rather than carved images of deities.
What was the sacrifice to Confucius?
A twice-yearly state rite with music and dancers, led by the local magistrate in full court dress.
Where is the most famous example?
The Confucius Temple at Qufu, Shandong, the sage's birthplace, is the largest and oldest.
Do temples still function today?
Many are restored as heritage sites and host school-opening and coming-of-age ceremonies again.