Born into the renowned Langye Yan lineage in Chang'an, mastering traditional family scholarship in phonology, paleography, and Han classical exegesis.

Yan Shigu (颜师古)
颜师古
Yan Shigu (颜师古, 581–645), originally named Zhou (籀) and widely known by his courtesy name Shigu, was a native of Wannian, Jingzhao (modern Xi'an, Shaanxi), with ancestral roots in Linyi, Langye. He was one of the most prominent philologists, classical exegetes, and historians of early imperial Tang China. Yan Shigu descended from the prestigious Langye Yan lineage; he was the grandson of the Northern Qi master Yan Zhitui…
PROFILE
Yan Shigu (颜师古, 581–645), originally named Zhou (籀) and widely known by his courtesy name Shigu, was a native of Wannian, Jingzhao (modern Xi'an, Shaanxi), with ancestral roots in Linyi, Langye. He was one of the most prominent philologists, classical exegetes, and historians of early imperial Tang China. Yan Shigu descended from the prestigious Langye Yan lineage; he was the grandson of the Northern Qi master Yan Zhitui (author of the Family Instructions for the Yan Clan) and the son of Yan Silu, a Confucian advisor to the Prince of Qin. Reared in a family celebrated for rigorous classical scholarship, Yan Shigu mastered historical phonology, etymological glossing, critical textual collation, and the classical exegetical heritage of the Han dynasties. During the Renshou era of the Sui dynasty, he was recommended by Vice Director of the Right Li Gang to serve as Defender of Anyang County, but subsequently retired from officialdom after falling into legal trouble and spent a decade lecturing in Chang'an. In 617, as Li Yuan mobilized in Taiyuan and marched into the Guanzhong basin, Yan Shigu accompanied his uncle to greet the Tang forces at the Changchun Palace in Tongzhou, receiving appointment as Grand Master for Court Dispersion. Following the proclamation of the Tang dynasty in 618, he served as Literary Attendant to the Duke of Dunhuang, Drafter of the Imperial Diary, and Secretariat Drafter, holding charge of imperial confidential documents and official rescripts. Upon Emperor Taizong's accession in 626, he was promoted to Vice Director of the Secretariat and ennobled as Baron of Langye County. During the Zhenguan era, Emperor Taizong commissioned Yan Shigu to collate the divergent textual traditions of the Five Classics, producing the official Dingben edition that standardized classical education nationwide. Under the patronage of Crown Prince Li Chengqian, he compiled his monumental sixty-volume Commentary on the Book of Han, synthesizing pre-Tang commentaries and elucidating ancient institutions, earning acclaim as the indispensable champion of Ban Gu's scholarship. Yan Shigu later rose to Vice Director and Director of the Palace Library and Scholar of the Hongwen Academy, orchestrating national book acquisitions to replenish the imperial archives and collaborating on the Compendium of Tang Five Rites and the Book of Sui. In 645, he accompanied Emperor Taizong on the military campaign against Goguryeo but succumbed to illness en route at the age of sixty-five. He was honored with the posthumous title Dai, leaving behind enduring foundational monuments in traditional Chinese textual scholarship.
- Original Name
- Yan Zhou (颜籀)
- Courtesy Name
- Shigu (师古)
- Aliases
- Palace Library Director Yan (颜秘书), Junior Yan (小颜)
- Posthumous Name
- Dai (戴)
- Peerage
- Baron of Langye County (琅邪县男), Viscount of Langye County (琅邪县子)
- Ancestral Home
- Wannian County, Jingzhao (京兆万年, present-day Xi'an, Shaanxi)
- Birth Date
- 581 (1st year of the Kaihuang era, Sui dynasty)
- Death Date
- 645 (19th year of the Zhenguan era, Tang dynasty)
- Age at Death
- 65
- Highest Office
- Director of the Palace Library (秘书监), Vice Director of the Secretariat (中书侍郎), Scholar of the Hongwen Academy (弘文馆学士), Policy Advisor (通直散骑常侍)
- Major Offices
- Defender of Anyang County, Grand Master for Court Dispersion, Secretariat Drafter, Vice Director of the Secretariat, Vice Director of the Palace Library, Chancellor of the Imperial University, Director of the Palace Library, Scholar of the Hongwen Academy
- Historical Role
- Early Tang classical philologist, historical commentator, linguist, and author of the authoritative Commentary on the Book of Han (Hanshu zhu)
LIFE TIMELINE
Recommended by Li Gang to serve as Defender of Anyang County; praised for outstanding administrative acumen before resigning after an administrative setback.
Traveled to the Changchun Palace in Tongzhou to pledge allegiance to Li Yuan, receiving appointment as Grand Master for Court Dispersion.
Upon the foundation of the Tang dynasty, served as Secretariat Drafter, monopolizing the composition of crucial state declarations, military dispatches, and imperial edicts.
Following Emperor Taizong's accession, promoted to Vice Director of the Secretariat and created Baron of Langye County, later mourning his mother's death.
Commissioned by imperial decree to collate the Five Classics in the Palace Library, debating contemporary scholars and establishing the authorized national standard.
Appointed Vice Director of the Palace Library, overseeing official imperial book collation and participating in the compilation of the Compendium of Tang Five Rites.
Elevated to Viscount of Langye County upon the completion of the Tang Five Rites; commissioned by Crown Prince Li Chengqian to compile an exhaustive commentary on the Book of Han.
Completed the monumental sixty-volume Hanshu zhu, earning imperial praise and concurrent appointment as Scholar of the Hongwen Academy.
Rose to Chancellor of the Imperial University and Director of the Palace Library, spearheading empire-wide book acquisitions to rebuild the imperial library.
Accompanied Emperor Taizong on the Eastern Expedition against Goguryeo, passing away from illness in military camp at age sixty-five, posthumously named Dai.
Relationship graph
BIOGRAPHY
Life Course
Familial Heritage and Scholarly Formation
Yan Shigu belonged to the prominent Langye Yan clan, a celebrated aristocratic scholarly house transplanted from the Southern Dynasties to Guanzhong. His grandfather, Yan Zhitui, was an eminent polymath who served the Northern Qi, Northern Zhou, and Sui dynasties, authoring the influential Family Instructions for the Yan Clan. His father, Yan Silu, was widely recognized for classical learning and served as an advisor in the Princely Establishment of Li Shimin. Immersed in this disciplined intellectual environment from childhood, Yan Shigu absorbed ancient texts, demonstrating extraordinary talent in philological glossing, phonological differentiation, and text-critical collation.
During the Renshou reign of Emperor Wen of Sui, Li Gang, Vice Director of the Department of State Affairs, recognized Yan Shigu's erudition and recommended him for public office. He was appointed Defender of Anyang County. The powerful Chancellor Yang Su tested the young appointee, asking how a youth intended to govern such a notoriously demanding county. Yan Shigu replied with composure, quoting classical wisdom to indicate that administering a minor district was well within his capabilities. Yang Su was astonished by his confidence, and Yan Shigu subsequently managed Anyang with exceptional efficiency. Nevertheless, administrative complications soon led to his dismissal. He remained in Chang'an without an official post for an entire decade, supporting his impoverished household by giving lectures. His classes attracted numerous disciples, cementing his reputation as an authoritative master of classical texts in the capital region.
Imperial Accession and Administrative Drafting
In 617, when Li Yuan raised troops at Taiyuan and advanced toward Chang'an, Yan Shigu accompanied his uncle to greet the insurgent army at the Changchun Palace in Tongzhou. Recognizing the immense prestige of the Yan family, Li Yuan granted him the title of Grand Master for Court Dispersion. After Li Yuan founded the Tang dynasty in 618, Yan Shigu was assigned to the establishment of the Duke of Dunhuang, shortly transitioning to Drafter of the Imperial Diary and then Secretariat Drafter within the Department of the Secretariat.
During the formative years of the Tang dynasty, the empire confronted widespread rebellions and frontier hostilities. Official paperwork and urgent military directives proliferated endlessly. Nearly all significant state declarations, proclamations of victory, and confidential edicts were drafted directly by Yan Shigu. His extensive command of classical precedent and imperial bureaucratic protocol enabled him to compose profound, balanced, and stylistically refined decrees without delay, winning deep admiration from Emperor Gaozu and senior court ministers.
Academic Authority under Emperor Taizong
Emperor Taizong took the throne in 626 and elevated Yan Shigu to Vice Director of the Secretariat, creating him Baron of Langye County. Shortly thereafter, Yan Shigu retired to observe the obligatory three-year mourning period following his mother's death. Resuming his post after the mourning rites, he was later relieved of his secretarial position due to an administrative infraction, yet Emperor Taizong continued to hold his unmatched scholarly mastery in the highest regard.
In 630, Emperor Taizong observed that classical texts had suffered extensive corruption across centuries of manual transcription, leaving teachers and students bewildered by conflicting variants. The emperor commanded Yan Shigu to conduct a systematic collation of the Five Classics in the Palace Library. Drawing upon rare manuscripts from both northern and southern traditions, Yan Shigu produced the Dingben (Standardized Edition). When established scholars in Chang'an challenged his textual choices, Yan Shigu defended his emendations by citing archaic inscriptions and Six Dynasties philological evidence, systematically resolving all doubts. Convinced by his exhaustive defense, Emperor Taizong decreed that Yan Shigu's edition be adopted throughout state academies and private schools as the exclusive national standard.
Stewardship of the Palace Library and State Rituals
In 633, Yan Shigu was appointed Vice Director of the Palace Library, assuming responsibility for inspecting and editing the imperial archival collection. In 637, he joined court scholars and ritual specialists in compiling the Compendium of Tang Five Rites, systematizing state ceremonial protocols. In acknowledgment of his contributions, Emperor Taizong advanced his peerage to Viscount of Langye County.
Yan Shigu subsequently served as Chancellor of the Imperial University and Director of the Palace Library, concurrently holding the rank of Scholar in the Hongwen Academy. Following in the footsteps of Wei Zheng and Yu Shinan, Yan Shigu petitioned the throne to restore the imperial book holdings, which had been devastated during late Sui conflicts. Under his guidance, the throne disbursed handsome rewards to purchase rare books across all prefectures, while elite scribes were recruited from bureaucratic families to produce fine calligraphy copies. This initiative expanded the imperial holdings into tens of thousands of fascicles. Concurrently, Yan Shigu contributed his historiographical expertise to the compilation of the official Book of Sui alongside Wei Zheng.
The Book of Han Commentary and Final Campaign
During the Zhenguan era, Crown Prince Li Chengqian commissioned Yan Shigu to prepare a comprehensive commentary on Ban Gu's Book of Han. Ban Gu's text was renowned for archaic vocabulary, complex syntax, and obscure Western Han administrative terms. Although earlier scholars like Fu Qian, Ying Shao, Jin Zhuo, and Chen Zan had annotated the text, their commentaries were fragmented, contradictory, and often lost.
Yan Shigu dedicated years of rigorous study to the undertaking, finishing his landmark sixty-volume Commentary on the Book of Han in 641. Crown Prince Li Chengqian presented the work to Emperor Taizong, who rewarded Yan Shigu generously and confirmed his status as a premier scholar of the realm. Contemporaries celebrated the commentary, declaring that just as Du Yu was the indispensable champion of Zuo Qiuming's Zuo zhuan, so was Yan Shigu the ultimate champion of Ban Gu's Book of Han.
In 645, Emperor Taizong led the eastern expedition against Goguryeo in person. Despite being sixty-five years old, Yan Shigu accompanied the imperial staff to manage confidential dispatches. During the strenuous military march through Liaodong, he fell gravely ill and died in camp. Deeply saddened by his passing, Emperor Taizong suspended court audiences, dispatched officials to oversee his funeral arrangements, and bestowed the posthumous name Dai.
Major Achievements
Synthesis and Creation of the Authoritative Han Shu Commentary
Yan Shigu's Commentary on the Book of Han represents an epochal landmark in traditional Chinese historiography and textual criticism. Prior to his work, readers relied on five major separate exegetical traditions whose authors frequently used glosses to criticize Ban Gu's historical judgments or indulged in speculative interpretations. Yan Shigu established the strict rule of following Ban Gu's original structural intent, refraining from subjective digressions.
He methodically evaluated more than twenty pre-Tang commentaries. Where previous annotations were accurate, he preserved them with explicit attribution; where earlier commentators committed demonstrable errors or contradicted historical facts, he refuted them with decisive documentary evidence; where earlier texts lacked explanations, he provided comprehensive analyses drawn from pre-Qin and Han canons. His commentary established an enduring model of historical exegesis that superseded all earlier fragmented efforts and remains the standard edition for studying Western Han history.
Methodological Principles: Contextual Exegesis and Historical Precedents
In his commentary, Yan Shigu demonstrated a sophisticated historiographical awareness, distinguishing the narrative demands of dynastic history from classical scripture. When encountering apparent discrepancies between Ban Gu's chronological tables and individual biographies, Yan Shigu refrained from altering the text arbitrarily. Instead, he analyzed institutional context across chapters, explaining scribal corruptions directly in annotations.
For example, in annotating the biography of Han Shuo, Yan Shigu cross-referenced the Shiji and the biography of Wei Qing to verify that Han Shuo had received two successive marquisates, identifying a scribal error in the Book of Han genealogical tables where the name had been mistakenly divided into two separate persons. Similarly, in addressing terse earlier glosses that explained individual words without conveying holistic sentence meaning, Yan Shigu provided continuous contextual paraphrases, making the complex bureaucratic and political realities of the Western Han fully accessible to subsequent generations.
Phonological Glosses and Clarification of Loan Characters
The Book of Han contained numerous ancient phonetic loan characters and obsolete pre-Qin graphs that posed formidable obstacles to medieval scholars. Yan Shigu brought formidable philological rigor to the resolution of these difficulties, systematically annotating homophones, loan words, and phonetic variants across every chapter.
Rather than treating rare characters in isolation, Yan Shigu explained the phonetic shifts and morphological connections that underpinned scribal borrowing. He alerted readers whenever a common character was employed as a phonetic stand-in for an ancient technical term, preventing anachronistic misreadings of Han institutions. By repeating essential phonetic guides directly within relevant biographical entries, he ensured that readers could comprehend the text continuously without searching across multiple scrolls.
Collation of the Five Classics and Unification of Imperial Standards
Yan Shigu's collation of the Five Classics played an indispensable role in unifying ideological and pedagogical standards across the Tang Empire. The centuries-long division between northern and southern scholarship had created deep discrepancies in classical orthography and interpretation: northern schools adhered strictly to rigid textual traditions, while southern masters focused on speculative philosophical meaning.
Tasked with rectifying classical manuscripts in the Palace Library, Yan Shigu conducted exhaustive collation across multiple recensions. He distinguished genuine ancient graph forms from vulgar corruptions, eliminating arbitrary scribal additions. In court debates, he defended his emendations by marshaling archaic seal scripts and early medieval inscriptions, persuading even the most entrenched factional scholars. His Dingben edition was decreed by Emperor Taizong as the mandatory curriculum for imperial examinations and state academies, terminating centuries of regional fragmentation and providing the authoritative textual foundation for Kong Yingda's later Correct Meaning of the Five Classics (Wujing zhengyi).
Authorship of Kuangmiu Zhengsui and Foundational Textual Criticism
Observing that countless popular errors had become entrenched through careless transcription and oral transmission, Yan Shigu authored the eight-volume critical treatise Kuangmiu zhengsu (Correcting Errors and Rectifying Vulgar Practices). This masterwork went far beyond basic lexicography, conducting structural examinations of textual transmission, institutional evolution, and linguistic change across classical literature.
Yan Shigu demonstrated an acute historical consciousness, demonstrating that titles, administrative offices, and social customs evolved across dynasties. In analyzing the term langshu, for instance, he demonstrated that in the Han dynasty it designated the prestigious executive quarters of imperial bodyguards, refuting contemporary Tang writers who mistakenly equated it with petty clerical offices due to intervening institutional changes. Guided by the principle that scholars must acknowledge gaps in knowledge rather than invent speculative theories, Yan Shigu pioneered the rigorous philological method of medieval evidential scholarship. In 652, his son Yan Yangting presented the manuscript to Emperor Gaozong, who ordered it preserved permanently in the imperial archives.
Archival Reconstruction of the Imperial Palace Library
During his tenure as Vice Director and Director of the Palace Library, Yan Shigu served as the principal architect of early Tang institutional bibliographical preservation. Recognizing that imperial holdings were severely depleted by late Sui warfare, he submitted urgent memorials urging the throne to purchase rare private manuscripts nationwide.
He designed an efficient system for acquiring, copying, collating, and storing classical literature. Scribes skilled in regular script were recruited from prominent families, while senior library scholars verified every newly acquired roll against earlier catalogs. Under his leadership, the Palace Library assembled tens of thousands of fascicles, establishing the preeminent repository of textual knowledge in East Asia and providing the cultural infrastructure that sustained the flowering of Zhenguan governance.
Lexicographical Elucidation of the Ji Jiu Pian
Yan Shigu also directed his formidable philological skills toward popular lexicographical primers, producing a comprehensive commentary on the Western Han character manual Ji jiu pian (also known as Ji jiu zhang), authored by Shi You. The primer contained an immense array of ancient names for flora, fauna, tools, ritual implements, and official titles, but its archaic vocabulary had become profoundly obscure over time.
Yan Shigu annotated the work character by character, providing ancient pronunciations, etymological roots, and material explanations for each entry. His meticulous work elevated a humble primer into an indispensable historical encyclopedia of ancient material culture, ensuring standard character pronunciation for generations of students and contributing significantly to the historical development of Chinese lexicography.
Personal Relationships
- Grandfather: Yan Zhitui, prominent Northern Qi and Sui Confucian scholar and author of Family Instructions for the Yan Clan.
- Father: Yan Silu, prominent early Tang scholar and advisor in the Princely Establishment of Li Shimin.
- Uncle: Yan Minchu, scholar noted for text collation.
- Uncle: Yan Youqin, Tang official and Prefect of Lianzhou.
- Brother: Yan Shibo, Tang official who served as Vice Director in the Ministry of Justice.
- Brother: Yan Shimeng, Tang official who served as Proofreader in the Palace Library.
- Brother: Yan Qinli, Tang official who served as Assistant in the Department of Historiography; memorialized in the famous calligraphy stele Yan Qinli Stele.
- Son: Yan Yangting, Tang official who served as Imperial Seal Official and presented Kuangmiu zhengsu to Emperor Gaozong in 652.
- Colleague: Li Gang, senior Sui and Tang statesman who originally recommended Yan Shigu for imperial office.
- Colleague: Wei Zheng, eminent Tang chancellor and fellow compiler of the Book of Sui, who also served as Director of the Palace Library.
- Colleague: Yu Shinan, renowned calligrapher and statesman who served as Director of the Palace Library.
Historical Evaluation
- Li Shimin (Emperor Taizong of Tang): "Your learning and erudition are truly worthy of praise, yet your domestic conduct and official career have not always garnered universal commendation." (Old Book of Tang, Chapter 73)
- Li Shimin (Emperor Taizong of Tang): "His learning is profound and harmonious, his administrative capacity lucid and agile. His knowledge encompasses the broad streams of literature, his diction embodies grace and elegance. In overseeing the imperial archives, he has served with devotion over many years, establishing enduring clarity and distinguished scholarly monuments." (Complete Tang Prose, Chapter 4, Imperial Rescript to Yan Shigu)
- Liu Xu et al. (Old Book of Tang): "Yan Shigu possessed encyclopedic mastery over administrative complexities, and his pronouncements set normative standards for posterity. Entrusted with drafting royal decrees, his words elevated the daily governance of an entire era into enduring literature." (Old Book of Tang, Chapter 73)
- Song Qi, Ouyang Xiu et al. (New Book of Tang): "Emperor Taizong lamented that ancient classical scriptures were drifting distant in time, with successive scholars clinging obstinately to narrow interpretations; he therefore ordered Yan Shigu to rectify the phrases. When critics challenged him, Yan Shigu refuted them systematically with ancient philological evidence, winning universal conviction." (New Book of Tang, Chapter 198)
- Bai Juyi (Tang poet): "I have heard that during the Wude and Kaiyuan eras, masters like Yan Shigu, Chen Shuda, and Su Ting were acclaimed as 'Grand Stylists,' managing imperial decrees so that the state's daily governance was transformed into literary splendor." (Collected Works of Bai Juyi, Chapter 48)
- Li Deyu (Tang Chancellor): "Since the founding of our dynasty, the court has known distinguished Directors of the Palace Library such as Wei Zheng, Yu Shinan, and Yan Shigu. The gravity of this office and the brilliance of those who occupied it are remembered with admiration to this day." (Old Book of Tang, Chapter 73)
Related Entries
- Book of Han
- Kuangmiu zhengsu
- Yan Zhitui
- Yan Silu
- Yan Qinli
- Li Shimin
- Wei Zheng
- Palace Library
FIGURES ASSOCIATED WITH THIS DYNASTY
Bibliography
- Old Book of Tang, Chapter 73, Biography 23: "Biography of Yan Shigu"
- New Book of Tang, Chapter 198, Biography 123: "Biographies of Confucian Scholars, Part 1: Yan Shigu"
- Zizhi Tongjian, Chapter 184, "Tang Annals 1"
- Zizhi Tongjian, Chapter 193, "Tang Annals 9"