In 566, Emperor Wen died and was succeeded by his son Emperor Fei. Chen Xu, as the young emperor's uncle, was in an honored position, sharing power with the officials Dao Zhongju (到仲舉), Kong Huan (孔奐), Yuan Shu (袁樞), and Liu Shizhi (劉師知). However, Chen Xu soon came into a power struggle with Dao and Liu, and in 567, after Liu made a failed attempt to have Chen Xu removed from the palace, Chen Xu forced him to commit suicide, and subsequently forced Dao to commit suicide as well. He was now in control of the imperial government. In winter 568, he had an edict issued in the name of Emperor Wu's wife Grand Empress Dowager Zhang Yao'er deposing Emperor Fei and giving him the throne. In spring 569, he formally took the throne as emperor (as Emperor Xuan). He created Princess Liu as empress and her son Chen Shubao as crown prince.