Tang Government, Examinations and Law: How the Empire Was Administered
From 618 to 907, Tang emperors governed an empire whose borders and political reach changed considerably. The dynasty was formally interrupted by Wu Zetian’s Wu Zhou regime from 690 to 705, and the An Lushan rebellion of 755–763 weakened central control, especially in frontier regions. Chang’an was the principal seat of government, with Luoyang also serving as a capital at points in the period. From these political centres, the court relied on officials to manage local administration, collect revenue, apply the law and communicate imperial decisions. Examinations helped shape who entered the bureaucracy, but they operated alongside recommendations, family ties and other forms of influence.
On this page5 sections
How the central administration was organised
The Tang central government divided administrative work among three departments and six ministries. The departments shared responsibility for drafting, reviewing and implementing policy. The ministries handled major areas of state business: personnel, finance, rites, military affairs, justice and public works. This division gave the court a structure for turning imperial decisions into appointments, regulations and practical tasks. The emperor remained the ultimate authority, but the volume of government work depended on officials and offices that prepared, considered and carried out policy.
Central administration depended on information from across the empire. Officials recorded households and land for taxation, and local authorities supplied reports about conditions in their jurisdictions. Census-taking also helped the state assess the population available for military service. In the early Tang, household registration and land allocation were connected to taxes and labour obligations. The fubing system used farmer-soldiers who served in rotation, including at the capital or on the frontier. These arrangements changed over time: the system came under pressure as landholding and population patterns shifted, and in 737 the court expanded reliance on long-service frontier troops.
Local officials and the work of administration
Below the central government, prefectures and counties were important units of administration. Local magistrates dealt with government business close to the population, including legal cases, while higher authorities supervised and received reports. The work involved more than enforcing rules. Officials had to maintain records, handle taxes and labour obligations, assess disputes and communicate local needs to the court. Their decisions connected central policy with households whose livelihoods depended largely on agriculture.
State administration did not replace private record-keeping. Literate and affluent people also made written contracts about property, sometimes with witnesses and a scribe, and could use these documents to support claims in court. Such records show how official procedures and local transactions could intersect: a magistrate might need to judge a claim using both legal rules and evidence produced by the people involved.
Recruitment, examinations and aristocratic connections
The Tang recruited officials through examinations and recommendations. Examinations offered men outside the most established aristocratic families a formal route into government, and Tang rules allowed male candidates to put themselves forward. But access was not socially equal. Education, tutors, time to study and the costs of travel favoured candidates with family resources. Women were excluded from the examinations, and family connections could help candidates gain recommendations or contacts in official circles.
State schools taught Confucian texts and prepared students for public service. The central government maintained institutions for different kinds of study, including the classics, law, writing, arithmetic and calligraphy. The Ministry of Rites organised the examinations. Among the main civil categories were the mingjing, which tested knowledge of the classics, and the jinshi, which assessed literary composition and understanding of government and political affairs. In the mingjing examination, candidates completed passages from canonical texts. The more demanding jinshi examination required written compositions; poetry became part of some examinations during the eighth century.
Passing an examination did not itself guarantee an appointment. Successful candidates went to the Ministry of Personnel for assessment and placement, and some could wait for an available post. Examiners could consider qualities beyond written answers, including speech, deportment and calligraphy. Candidates’ reputations and social contacts could matter to Tang examiners. The routine concealment of names associated with later examinations developed under the Song, after the Tang period.
The examinations grew in political importance during the Tang, particularly from the late seventh century onward. Success in the jinshi increasingly helped determine access to high office, and aristocratic pedigree alone became less decisive. Recommendations remained another route into government, and powerful families continued to benefit from education, social networks and access to the court. Wu Zetian, who ruled from 690 to 705, expanded examination opportunities as she built support beyond the established Li-family elite. Her government also developed palace and military examinations. The Tang system thus widened formal competition without making the bureaucracy independent of family status or political patronage.
The Tang Code and the practice of law
The Tang Code was a penal code, not the whole of Tang law. It worked alongside statutes, regulations and other legal measures. Begun in 624, it was revised in 627 and 637, and a detailed commentary was completed in 653. Its twelve sections contained about 500 articles, setting out offences and associated penalties.
Penalties depended on both the offence and the relationship between the people involved. Family status was measured in part through degrees of kinship and mourning obligations; outside the family, the law recognised a hierarchy that placed officials above ordinary people and people of servile status below them. Consequently, the same act could receive different penalties depending on who committed it and against whom. Punishments included blows with a stick, penal labour, exile with labour and execution. The code therefore imposed an ordered system of justice while reflecting the social distinctions of Tang society.
Local magistrates examined cases and determined which offence applied under the code. They considered evidence and witness statements, and legal tradition described a method called the “five hearings”: attention to a person’s words, expression, breathing, response to questioning and eyes. This was a prescribed way of judging testimony, not a guarantee that a magistrate could establish the truth by observation alone. If evidence and testimony were insufficient, a magistrate could seek higher approval to use judicial torture. The rules limited its use, including the number of interrogations and the blows permitted, and prescribed an authorised instrument.
Frontier authority and the weakening of central control
Tang administration varied with the empire’s changing reach. In some frontier regions, the court governed through protectorates whose officials had considerable freedom to respond to local crises. This differed from administration nearer the centre, where civil officials and established offices were more directly involved. The distinction became more consequential as military commanders gained authority. From the eighth century, regional military governors known as jiedushi accumulated troops and influence, and the An Lushan rebellion accelerated the erosion of central power.
After the rebellion, Tang forces withdrew from some western garrisons, and Tibetan expansion reduced the court’s control over parts of its former frontier. The central government later recovered some northwestern territory, including areas regained from Tibetan control by 851, but did not restore its earlier reach into Central Asia. In the late eighth century, after further regional conflicts, the court formally accepted hereditary rule by some military governors. By the ninth century, these commanders could maintain armies and collect taxes with substantial independence from the centre.
For the wider setting, see Tang China: History, Government and Society.