Yan Zhenqing served as a loyal Tang official during the An Lushan Rebellion (
安史之乱), losing his nephew Yan Jiming to rebels. His grief-stricken eulogy 《
祭侄文稿》 (Jì Zhí Wén Gǎo, 'Draft of a Eulogy to a Nephew') survives as a manuscript with crossings-out and corrections — and is regarded as one of the three greatest works of running-script calligraphy in history. He was eventually executed at age 76 after refusing to defect to a rebel general.