杜佑
Du Mu was born in the Tang capital Chang'an (modern Xi'an) into an elite family, the Jingzhao Du clan, whose fortunes were declining. His grandfather was Du You, a minister at the Tang court and the compiler of the Tang Dynasty encyclopedia "Tongdian". He passed the "jinshi" ("Presented Scholar") level of the imperial civil service examination in 828 at the age of 25, and began his career as a bureaucrat holding a series of minor posts, first as an editor of at the Institute for the Advancement of Literature. A few months later, he joined the entourage of Shen Chuanshi (), a surveillance commissioner, first to Hongzhou, then a year later to Xuanzhou. In 833 he was sent to join Niu Sengru in Yangzhou. In Yangzhou he began to mature as a poet. In 835 he was appointed investigating censor and returned to the capital where, possibly concerned about being drawn into a factional dispute involving his friend Li Gan who had opposed Zheng Zhu, he asked to be transferred to Luoyang. This was granted, and he avoided the purge that followed the Sweet Dew Incident which happened later in the year.