Data from the distant past are fertile ground for testing social science theories of education and social mobility. In this study, we construct a dataset from 3,640 tomb epitaphs of males in China’s Tang Dynasty (618–907 CE), which contain granular and extensive information about the ancestral origins, family background, and career histories of the deceased elites. Our statistical analysis of the complete profiles yields evidence of the transition away from an aristocratic society in three key trends: 1) family pedigree (i.e., aristocracy) mattered less for career achievement over time, 2) passing the Imperial Examination (
Keju
) became an increasingly important predictor of one’s career achievement, and 3) father’s position always mattered throughout the Tang, especially for men who did not pass the
Keju
. The twilight of medieval Chinese aristocracy, according to the data, began in as early as the mid-seventh century CE.