 In 805, the Emperor Dezong died and was succeeded by his son Shunzong.The government was entrusted to two reformers associated with the new emperor, Wang Shuwen and Wang Pi, 'imperial scholars' of the Hanlin Academy, who initiated the 'Yongzhen Reform' (after the new emperor's reign title).Liu Yuxi and Liu Zongyuan were closely connected to these officials, working immediately under them.