?–1230 CE

Jin official and writer

Yang Yunyi

杨云翼

Yang Yunyi (1170–1228), courtesy name Zimei, was an eminent statesman, scholar, man of letters, and calendrical astronomer of the Jurchen Jin dynasty. Native of Zanhuang, Wozhou, his lineage settled in Chuankou, Leping. In 1194, he achieved first place (Zhuangyuan) in the imperial palace examinations under Emperor Zhangzong and served across three reigns: Zhangzong, Xuanzong, and Aizong. He rose to the highest civil positions…

?–1230 CEJin dynasty

PROFILE

Yang Yunyi (1170–1228), courtesy name Zimei, was an eminent statesman, scholar, man of letters, and calendrical astronomer of the Jurchen Jin dynasty. Native of Zanhuang, Wozhou, his lineage settled in Chuankou, Leping. In 1194, he achieved first place (Zhuangyuan) in the imperial palace examinations under Emperor Zhangzong and served across three reigns: Zhangzong, Xuanzong, and Aizong. He rose to the highest civil positions including Minister of Rites, Minister of Personnel, Censor-in-Chief, Hanlin Lecturer-Academician, and Head of the Institute for Refining Governance (Yizheng Yuan). He was posthumously honored with the esteemed title 'Wenxian'. Renowned for profound learning and mastery of astronomical calculation, Yang presided over the imperial examinations for three decades. Alongside Zhao Bingwen, he was celebrated as the twin pillars of Jin literature ('Yang and Zhao'). In the turbulent final decades of the Jin Empire, Yang demonstrated unflinching integrity: his monumental Memorial Advising Against the Campaign Against the Song precisely analyzed geopolitics and human affairs, warning against costly expansionism. As tutor and advisor to Emperor Aizong, he urged governance rooted in upright moral commitment ('Great Righteousness of Serving the Sovereign'), treated tens of thousands of plague-stricken laborers, spared thousands of refugees fleeing across the Yellow River, and rectified the New Taiyi Calendar. He is remembered as an indispensable moral compass and venerable statesman of the late Jin era.

Other Names
Courtesy name Zimei; posthumous title Wenxian
Courtesy Name
Zimei
Era
Jin dynasty
Dynasty/Regime
Jin dynasty
Identity
Jin official and writer
Date of Birth
1170 CE(10th year of the Dading era, Jin)
Ethnicity
Han Chinese
Native Place
Chuankou, Leping (modern Xiyang County, Shanxi)
Place of Birth
Chuankou, Leping (modern Xiyang County, Shanxi)
Place of Death
Bianjing (modern Kaifeng, Henan)
Posthumous Name
Wenxian
Highest Offices
Minister of the Ministry of Rites; Hanlin Academician
Major Achievements
Prominent late Jin official; broadly learned and skilled in calendrical calculation; rose to Minister of the Ministry of Rites; known for loyal and outspoken remonstrance
Courtesy / Art Name
Zimei
Dynasty
Jin Dynasty
Ancestral Home
Zanhuang, Hebei; the family later settled in Chuankou, Leping, Shanxi
Lifespan
59 years
Highest Office
Minister of Rites, Minister of Personnel, Censor-in-Chief
Major Offices
Minister of Rites, Director of Imperial Astronomical Bureau, Hanlin Academician
Posthumous Honors
Vice Grand Councilor (Canzhi Zhengshi)

LIFE TIMELINE

Born in Leping | Born in Chuankou Village, Leping County; exhibited extraordinary early precocity by tracing characters in the soil.
Imperial Laureate | Ranked first (Zhuangyuan) in the palace examination and passed the poetic composition category in class B; granted title of Gentleman for Rendering Service and Hanlin Assistant Writer.
Regional Post in Shaanxi | Appointed Administrative Assistant to the Marshal of the Eastern Shaanxi Route, handling provincial affairs.
Academic Appointment | Summoned to the capital as Professor of the National University; promoted to Assistant Minister of the Court of Imperial Sacrifices and Hanlin Compiler.
Circuit Inspection | Commissioned to inspect affairs in the Shangjing and Dongjing circuits; impressed Emperor Zhangzong during imperial audience.
Astronomical Directorship | Recommended by Zhang Xingjian for his calendrical expertise; appointed Superintendent of the Directorate of Astronomy and Hanlin Compiler, later Vice Director in the Ministry of Rites.
Medical Resignation | Resigned from office due to severe rheumatic illness and returned home to recuperate.
Recalled from Retirement | Recalled by Emperor Xuanzong upon noticing his record; reinstated as Superintendent of Astronomy and concurrently Director in the Ministry of Personnel.
Promotion in Rites | Promoted to Vice Minister of Rites while continuing to oversee the Directorate of Astronomy.
Strategic Prescience | Urgently cautioned against appointing Pucha Alibusun as Vice Commander against Mongol and Western Xia armies; his warnings were ignored and Jin troops were routed.
Retained as Court Counselor | Promoted to Hanlin Lecturer-Academician, Compiler of National History, and Director of Jixian Academy; granted special decree to remain in capital; fiercely opposed Shuhu Gaoqi's proposed state monopoly on lamp oil.
Minister of Rites | Elevated to Minister of Rites while holding academic advisory titles.
Treating Conscripts | Oversaw construction of Bianjing's secondary wall; personally provided medicine and treated thousands of plague-stricken laborers.
Personnel and Censorate | Reassigned as Minister of Personnel; petitioned for clemency for officials elevated via grain supplies and military merit; cited Mencius to advise Emperor Xuanzong on diplomatic conciliation; appointed Censor-in-Chief and impeached Wanyan Chengli while elevating Wanyan Heda.
Memorial Against Song Campaign | Submitted the celebrated Memorial Advising Against the Campaign Against the Song; predicted complete disaster, which materialized when Shi Quan's army collapsed in Huainan.
Academician to New Emperor | Emperor Aizong acceded to the throne; appointed Yang Acting Chief Minister of the Court of Imperial Sacrifices and soon Hanlin Academician.
Restoring State Council Power | Appointed Minister of Rites and Imperial Lecturer; reformed administrative procedures to reassert the authority of the Department of State Affairs over the Bureau of Military Affairs; successfully concluded trade negotiations with Western Xia.
Head of Governance Institute | Placed in prime leadership of the newly created Institute for Refining Governance; expounded the Classic of History without trivial scholarly pedantry; delivered the famous admonition on 'the Righteous Duty of Serving the Sovereign'.
Benevolent Intercession | Used the doctrine of 'cultivating the heart' to advise imperial governance; successfully persuaded the court to spare thousands of Hebei refugees fleeing across the Yellow River.
Correcting the Calendar and Demise | Audited the New Taiyi Calendar, uncovering over twenty computational errors; passed away at age fifty-nine; posthumously bestowed the honorific title 'Wenxian'.

BIOGRAPHY

Biography

Family Background and Early Brilliance

Yang Yunyi's ancestors hailed from Tanshan in Zanhuang, Wozhou (present-day Zanhuang County, Hebei Province). During the turbulent shifts of dynasties, his sixth-generation forebear, Yang Zhong, moved and settled in Chuankou Village, Leping County (present-day Chuankou, Xiyang County, Shanxi Province). The Yang family established itself through traditional agriculture and scholarly cultivation, fostering strict moral discipline. In 1170 CE (the 10th year of the Dading era under Emperor Shizong of Jin), Yang Yunyi was born. From early childhood, he showed breathtaking intellectual gifts. Barely able to speak, he would take sticks or pebbles to trace characters in the dirt. Endowed with near-photographic memory, he memorized several thousand characters of classical prose each day, astonishing local tutors and villagers who praised him as a child prodigy. ### Supreme Examination Triumph and Imperial Academy Service In 1194 CE (the 5th year of the Mingchang era under Emperor Zhangzong), the twenty-five-year-old Yang Yunyi journeyed to the imperial capital to sit for the national civil service examinations. In the supreme palace examination, his profound essays on statecraft surpassed all competitors, earning him the coveted title of Zhuangyuan (First-Rank Scholar), while also passing the poetic composition exam in Class B. Deeply impressed by his talents, Emperor Zhangzong conferred upon him the title of Gentleman for Rendering Service and appointed him Assistant Writer in the Hanlin Academy. In 1199 CE, Yang was transferred to regional administration as Administrative Assistant to the Marshal of the Eastern Shaanxi Route, gaining first-hand knowledge of northwestern border defenses and local governance. In 1201 CE, Emperor Zhangzong recalled him to the central court as Professor in the National University, soon promoting him to Assistant Minister of the Court of Imperial Sacrifices and Hanlin Compiler. In 1207 CE, Yang was tasked with inspecting civil and military governance across the Shangjing and Dongjing circuits. During an audience in the inner palace, Emperor Zhangzong closely questioned him regarding frontier garrison affairs; Yang answered with such lucidity and insight that the emperor expressed boundless admiration. ### Directing the Directorate of Astronomy and Illness Retirement In 1209 CE, Prince of Weishao ascended the throne. Zhang Xingjian, Chancellor of the Hanlin Academy, recognized that Yang Yunyi was not merely a peerless classicist and prose master, but also possessed extraordinary command of calendar science, mathematical astronomy, and cosmological divination. Zhang strongly recommended him to the throne. The emperor summoned Yang and appointed him Superintendent of the Directorate of Astronomy (Sitiantai) and Hanlin Compiler, soon adding the duties of Vice Director in the Ministry of Rites. By 1212 CE (the 1st year of the Chongqing era), Mongol forces under Genghis Khan were repeatedly breaching northern defensive lines, casting dark shadows over the central plains. Worn down by years of exhaustive administrative labor, Yang suffered severe flare-ups of rheumatic ailments. Incapacitated, he tendered his resignation and returned to his home village in Leping to seek medical care and rest. ### Imperial Recall by Emperor Xuanzong and Military Prescience In 1214 CE, under Mongol siege, Emperor Xuanzong abandoned Zhongdu and relocated the Jin capital south to Bianjing (Kaifeng). While reviewing civil registers to reassemble his administration, Xuanzong noted Yang Yunyi's name, sighed with regret at his absence, and immediately dispatched an imperial courier to summon him. Yang was reappointed Superintendent of the Directorate of Astronomy and Director in the Ministry of Personnel. In 1215 CE, he was elevated to Vice Minister of Rites while continuing his astronomical oversight. In 1216 CE, allied armies of Mongols and Western Xia surged into Fuyan, threatening Guanzhong and the vital Tongguan Pass. When Emperor Xuanzong consulted court officials, voices proposed dispatching Minister of War Pucha Alibusun as Vice Commander of an expeditionary army. Yang Yunyi stood forward and fiercely objected: "Pucha Alibusun is arrogant and frivolous. He is known for boasting without practical military acumen. Entrusting him with frontier command will surely bring ruin to the state!" The chancellor disregarded his warning. Alibusun advanced, only to suffer catastrophic defeat in Shaanxi, vindicating Yang's keen judgment of character. ### Courtiers' Courage and Opposition to Monopolies In June 1217 CE, Yang was appointed Hanlin Lecturer-Academician, Compiler of the National History, and Director of the Jixian Academy. Under Jin court statutes, officials attaining the third rank were routinely assigned to govern external circuits. However, recognizing Yang's incorruptibility, Emperor Xuanzong issued a special imperial edict: "Your character is magnificent and righteous. Whenever state affairs require counsel, you speak without fear or favor. Therefore, you are specially retained in the inner court without regional transfer." At the time, Right Grand Chancellor Shuhu Gaoqi held absolute dictatorial control over the court. Corrupt sycophants proposed establishing a state monopoly on domestic lamp oil, allowing the treasury to arbitrarily seize and resell oil supplies. Gaoqi supported the proposal and summoned high officials for joint deliberation. Twenty-six high ministers, led by Minister of Revenue Gao Kui, timidly concurred. Only Yang Yunyi, Zhao Bingwen, and Shi Jian openly rebuked the measure as an extortionate levy that would oppress ordinary citizens and crush commerce. Faced with their steadfast opposition, the plan was abandoned. Gaoqi harbored deep resentment and repeatedly sought pretexts to punish Yang, but Yang remained serene and unshaken. In 1218 CE, Yang was elevated to Minister of Rites. In 1219 CE, the Jin court mobilized tens of thousands of garrison troops and conscripted laborers to construct the secondary defensive wall around Bianjing. Amid stifling summer rains and foul vapor, pestilence erupted among the camps, causing widespread fatalities. Horrified, Yang did not fear contagion; instead, he dipped into his personal savings to procure pharmaceuticals, visited the barracks daily, and administered herbal remedies, saving countless lives. The grateful populace hailed him as a living bodhisattva. ### Strategic Restraint and Judicial Integrity In 1220 CE, Yang became Minister of Personnel. Since the southern relocation, fiscal bankruptcy forced the court to sell offices in exchange for grain and promote soldiers based on battlefield achievements. Yet judicial clerks subjected these candidates to absurdly rigorous formalities, stripping their titles over minor infractions. Yang petitioned Xuanzong: "Rewards and penalties constitute the sovereign's sacred pledge to the realm. Those who contributed grain saved the army; those who shed blood defended the borders. How can clerks strangle their devotion with pedantic paperwork? Your Majesty must order broad leniency to rally the hearts of all heroes!" The emperor assented. In September of that year, Xuanzong summoned Yang, Gao Kui, and Zhao Bingwen to private council, asking whether the state should pursue peace or wage aggressive campaigns. When hawkish courtiers blindly clamored for attack, Xuanzong sat in troubled silence. Yang calmly stepped forward and quoted Mencius on the virtue of 'the benevolent serving the small and the wise serving the great': "Warfare is an instrument of doom. Today our people are exhausted and the state is beleaguered. The foremost duty is to nurture popular vitality and secure the foundations of the altars of state!" Xuanzong's face visibly relaxed in gratitude. In November, Yang was appointed Censor-in-Chief. Imperial clan minister Wanyan Chengli, governing Jingzhao, was accused of lawlessness and arbitrary abuse. Xuanzong commanded Yang to interrogate him. After establishing the facts, Yang addressed the throne: "Chengli's fiscal indiscretions are petty infractions. What truly matters is that when Mongol armies ravaged areas west of Pingliang, Chengli sat idle with tens of thousands of elite troops, looking on without lifting a hand! Meanwhile, Commander Wanyan Heda held an isolated city at Fuyan against overwhelming odds, winning dozens of battles. Heda's merit towers like a mountain, whereas Chengli's betrayal is deep as an abyss. Your Majesty should reward Heda to inspire soldiers, and severely punish Chengli to restore discipline!" Xuanzong followed his advice, demoting Chengli and entrusting overall military leadership to Wanyan Heda. ### The Monumental Memorial and the Calamity of the Southern Invasion In 1222 CE (the 1st year of the Yuanguang era), Assistant Commissioner of Military Affairs Shi Quan and aggressive courtiers advocated invading the Southern Song in Huainan to plunder resources to compensate for northern losses. When Xuanzong convened the court, Yang Yunyi presented his legendary Memorial Advising Against the Campaign Against the Song: "The words of your courtiers are sycophantic illusions! In human affairs, order alternates with disorder, strength with weakness. Today your ministers speak only of order and never disorder, of strength and never weakness, of victory and never defeat. This is self-deception! An attack on Song is not about coveting land, but fearing attacks on multiple fronts. But suppose our forces seize Huainan and Song retreats: what do we gain? South of the Yangtze lies boundless territory; Song can easily muster tens of thousands of troops to strike northward the moment Mongols pressure our northern frontier. If victory brings such perils, what disaster awaits if we are defeated? Furthermore, conditions today differ radically from the Taihe era. In Taihe, our armies struck in deep winter when frozen waterways allowed cavalry maneuvers. Today you march in sweltering summer mud! In Taihe, our empire marshaled its undivided strength behind crack legions; can our exhausted, demoralized garrisons match them today? Western Xia once fled from our archers; today they sack our cities and capture our generals. If Western Xia has changed, how can Southern Song remain helpless? Do not indulge sweet flatteries only to harvest eternal regret!" Tragically, Xuanzong ignored the plea and dispatched Shi Quan. In short order, the Jin expedition was utterly smashed along the Huai River, with immense casualties. Heartbroken and mortified, Xuanzong wept before his ministers: "I refused Yang Yunyi's advice, bringing this catastrophe upon the realm. With what face can I ever look upon him again?" ### Chief of the Institute for Refining Governance and Emperor's Mentor In 1224 CE, Emperor Aizong acceded to the throne. He immediately appointed Yang Acting Chief Minister of Imperial Sacrifices, soon elevating him to Hanlin Academician. In February 1225 CE, Yang was made Minister of Rites and concurrently Imperial Lecturer. During discussions on the state budget, Yang observed: "Budgetary matters are the routine business of the Ministry of Revenue. What truly imperils the realm is that the Bureau of Military Affairs monopolizes military decisions and holds the Department of State Affairs in contempt. The prime minister cannot participate in vital security strategy! This divide must be mended." Aizong endorsed his counsel and aligned ministerial authority. Later that year, Western Xia envoy Li Bian arrived to negotiate cross-border trade. Protracted disputes dragged on for months. Aizong entrusted the mission to Yang, whose seasoned diplomacy and fairness resolved all contentious articles within days, restoring vital frontier commerce. In 1226 CE, Emperor Aizong established the Institute for Refining Governance (Yizheng Yuan) to gather the empire's greatest minds. Yang was placed at the very head of the institute. The emperor dispensed with standard heraldry during audiences, inviting Yang to be seated. When expounding the Classic of History, Yang instructed: "An emperor's reading must not imitate pedantic grammarians dissecting syntax; he must grasp the grand compass of governance: employing the virtuous, expelling the corrupt, aligning with moral principle, and cultivating sincere devotion." Aizong listened tirelessly. Yang subsequently presented twenty treatises, including Record of the Ten-Thousand-Year Turtle Mirror, Imperial Learning, and Imperial Filial Piety. ### The Righteous Duty of Serving the Sovereign and Passing Observing that courtiers were paralyzed by hesitation and timid protocol, Yang delivered a stirring remonstrance after an imperial lecture: "Ministers observe the etiquette of serving the sovereign: stepping aside for imperial carriages, walking with bowed heads, standing erect before the throne. These are rules of decorum. But when the security of the realm and the lives of the people are at stake, etiquette is secondary to the Righteous Duty of Serving the Sovereign! If the ruler wishes to proceed with a flawed policy, his ministers must fiercely expose its errors; if he rejects a sound measure, they must vigorously champion it. If unheeded, a minister must hold fast to the imperial robes, break the doorsill, or block the chariot wheels! If court officials cling only to ceremonial deference while forsaking transcendent duty, on what can the state rely?" Aizong was deeply shaken and confessed: "Had it not been for you, I would never have heard such vital truths!" In his final years, when questioned by Aizong about treating recurring palsy, Yang advised: "Healing the body begins with healing the heart; when the heart is harmonious, noxious pathogens cannot invade. Governing the state is identical: if the sovereign rectifies his own heart, the hundred officials will follow righteousness." When thousands of Hebei refugees crossed the Yellow River to escape Mongol cavalry and faced execution under strict border laws, Yang intervened: "Laws penalize unauthorized crossings to thwart subversives. These desperate wretches fled slaughter seeking life in their motherland. Executing them drives our own people into enemy hands!" Xuanzong pardoned them all. When an imperial pardon for drought victims excluded Shaanxi, Yang argued that heaven, earth, and mankind are interconnected, prompting the court to extend relief to Guanzhong. Finally, tasked with auditing the New Taiyi Calendar, he discovered over twenty mathematical miscalculations, winning acclaim from astronomers across northern China. In 1228 CE (the 5th year of the Zhengda era), Yang Yunyi passed away at his official residence in Bianjing at the age of fifty-nine. Emperor Aizong suspended court audiences in deep grief, and the government bestowed the revered posthumous title 'Wenxian'.

Major Activities

Zhuangyuan Laureate and Master of Civil Examinations

Yang achieved top honors in the 1194 imperial examinations. After the southern migration, he and Zhao Bingwen alternated as chief examiners of the Ministry of Rites for three decades. His protégés included renowned literati such as Yuan Haowen and Li Junmin. Known as the literary masters 'Yang and Zhao', they authored the most consequential imperial proclamations and state documents of the era. ### The Historic Memorial Against Invading Song In 1222, amid widespread warmongering, Yang submitted his celebrated Memorial Advising Against the Campaign Against the Song. Analyzing climate, terrain, and troop morale, he foretold that seizing Huainan would only create an untenable frontline along the Yangtze. The memorial stands as a monumental masterpiece of Jin strategic analysis and prose literature. ### Prime Leader of the Institute for Refining Governance Appointed head of the newly created Yizheng Yuan in 1226, Yang instructed Emperor Aizong in fundamental statecraft, discouraging petty scholasticism while emphasizing moral rectitude. His discourses on the supreme duty of ministers provided vital ethical guidance during the twilight of the Jin dynasty. ### Compassionate Governance and Refugee Relief During the construction of Bianjing's secondary wall in 1219, Yang personally administered medical relief to thousands of sick conscripts. He later intervened to rescue thousands of northern refugees from execution along the Yellow River, and ensured drought reviews covered Shaanxi, exemplifying Confucian benevolence. ### Mathematical Astronomy and Calendrical Revision Yang's profound command of astronomy and mathematics enabled him to comprehensively audit the newly submitted Taiyi Calendar, correcting more than twenty significant orbital and seasonal miscalculations.

Personal Relations

  • Ancestors: Yang Zhong (6th-generation ancestor who settled in Chuankou)
  • Great-Grandfather: Yang Qing (posthumously honored)
  • Grandfather: Yang Yu (posthumously honored)
  • Father: Yang Heng (posthumously honored)
  • Sovereigns Served: Emperor Zhangzong (Wanyan Jing), Prince of Weishao (Wanyan Yongji), Emperor Xuanzong (Wanyan Xun), Emperor Aizong (Wanyan Shouxu)
  • Allies and Colleagues: Zhao Bingwen (fellow literary titan), Zhang Xingjian (patron who recommended his astronomical talents), Shi Jian, Gao Kui
  • Political Adversaries: Shuhu Gaoqi (tyrannical grand chancellor whose monopoly was thwarted by Yang), Shi Quan (reckless commander whose southern campaign resulted in defeat), Wanyan Chengli (corrupt imperial clan general impeached by Yang)
  • Protégé Elevated: Wanyan Heda (promoted to chief commander following Yang's advocacy)

Historical Assessment

  • History of Jin (Jin Shi): 'Yang Yunyi and Zhao Bingwen were towering giants among Jin scholars. Their writings, discourses, and statecraft are all worthy of transmission to posterity. When Yang remonstrated against attacking Song, though Xuanzong did not listen, how could his loyal heart feel any shame before Wang Jinglue?'
  • Emperor Xuanzong of Jin: 'With what face can I ever look upon Yang Yunyi again?'
  • Emperor Aizong of Jin: 'Had it not been for you, I would never have heard such vital truths!'
  • Zhao Bingwen: 'Zimei's prose is like a thousand-fathom cedar reaching into the clouds; in character he was upright, austere, and unswerving, viewing worldly riches and disgrace as floating clouds.'
  • Yuan Haowen: 'The golden zenith of Jin literature rested entirely upon the shoulders of the two elders, Yang and Zhao. Their classicism and lofty virtue moved the entire realm.'

LOCAL NETWORK

FIGURES ASSOCIATED WITH THIS DYNASTY

Bibliography

  • History of Jin, Volume 110, Biography 48 (Yang Yunyi)
  • Continued Comprehensive Mirror to Aid in Government, Volume 161
  • Zhongzhou Ji, Volume 4
  • Complete Jin Poetry, Volume on Yang Yunyi