Early life Yan Zhenqing was born in Wannian (), near the Tang capital
Chang'an, to a highly reputed academic family (
Langya Yan Clan, 琅邪颜氏) which served the court for many generations. One of his ancestors was
Yan Zhitui, a scholar-official during the
Southern and Northern Dynasties. His great-great-grandfather
Yan Shigu was a famous linguist while his father
Yan Weizhen () was private tutor to the
Tang princes' and a great calligrapher himself. Under the influence of family tradition and the strict instruction of his mother, Lady Yin (), Yan Zhenqing worked hard from childhood and was well-read in literature and
Confucianism. In 734, at the age of 22, Yan Zhenqing qualified at the national wide
imperial examination and was granted the title of
Jinshi (a rough equivalent of the modern day
doctorate). He then gained the rare opportunity of taking a special imperial examination that was set for candidates with extraordinary talents, again excelling in it. With his outstanding academic background, Yan Zhengqing rose rapidly through the bureaucratic ladder: he was appointed vice-magistrate of Liquan District (), then later
Investigating Censor () and
Palace Censor (). His uprightness and outspoken style were hailed by the common people, but angered
Grand Councilor Yang Guozhong; as a result, in 753, he was sent out of the capital as the governor of
Pingyuan Commandery.
Civil war By the time Yan Zhenqing took up the post of governor of Pingyuan, the
An Shi Rebellion was imminent. With his political sensitivity, Yan Zhenqing immediately started preparing for war by fortifying the city wall and stocking up provisions. He also sent emergency memorial to
Emperor Xuanzong, but was ignored. In December 755,
An Lushan and
Shi Siming rebelled under the name of removing Yang Guozhong. The ill-prepared Tang government troops retreated with little resistance from all the prefectures in Heshuo () area (which includes the present day provinces of Shandong,
Hebei and
Henan); only Yan Zhenqing's Pingyuan sustained through. He then combined force with his cousin,
Yan Gaoqing (), who was the governor of
Changshan () (present day
Quyang, Hebei), fighting the rebels at their rear. The government in its desperation, promoted Yan Zhenqing to Deputy Minister of Finance (), and conferred him great military power to assist General
Li Guangbi () in the suppression of the rebellion. Thereafter Yan's force won several major battles over the rebels, including successfully cutting the rebel supply lines and regaining control over seventeen commanderies in Heshuo area. In 756,
Emperor Suzong ascended the throne from Emperor Xuanzong and promoted Yan Zhenqing to Minister of Works (). Due to poor military deployment by the Tang government, An Lushan managed to attack Hebei by surprise, and Yan Zhenqing reluctantly abandoned his command, returning to the court in 757. He was then appointed Minister of Law (), but his outspokenness against corrupt higher-ranking officials resulted in himself being constantly demoted and re-promoted.
Late life In 764,
Emperor Daizong conferred the title of Duke of Lu () on Yan Zhenqing in recognition of his firm loyalty to the government and bravery during the An Lushan Rebellion. However, his unbending character was resented by the incumbent Grand Councilor,
Lu Qi, and cost him his life. In 773, Yan Zhenqing and a group of friends began work on compiling the (c. 780)
Yunhai Jingyuan, which was a 360-volume
rime dictionary of literary words that unfortunately became a
lost work. In 784,
Li Xilie, the
military governor of Huaixi (), rebelled. Lu Qi had held a grudge against Yan Zhenqing for a long time, so he sent Yan Zhenqing to negotiate with Li Xilie in the hope that Yan Zhenqing would be killed. As expected, Li Xilie tried all means to coax or threaten Yan Zhenqing to surrender, but Yan Zhenqing never wavered. According to legend, Li Xilie set up a fire in the courtyard and told Yan Zhengqing he would be burnt to death if he did not surrender. Yet, Yan Zhenqing did not show the slightest fear and walked towards the fire determinedly. Li Xilie could not help but to show respect to him, and on 23 August, Yan Zhenqing was secretly strangled at the Longxing Temple () in
Caizhou, Henan. Upon hearing of his death, Emperor Daizong closed the assembly for five days and conferred the posthumous title
Wenzhong () on Yan Zhenqing on 2 March 785, along with the posthumous position of
situ. He was also widely mourned by the army and the people, and a temple was constructed to commemorate him. In the
Song dynasty, the temple was moved to modern Shandong and from then on became a key tourist attraction. ==Calligraphic achievement==