Li Huaiguang [SEP] sex or gender
would have undesirable effects, and Emperor Dezong agreed and did not pardon Li Huaiguang.
In fall 785, under Ma's persuasion, Xu surrendered Changchun Palace, allowing imperial troops to continue to advance to Hezhong. With Ma and Hun approaching Hezhong and Li Huaiguang's soldiers at Hezhong in a panic, Li Huaiguang committed suicide by hanging. His subordinate Niu Mingjun (牛名俊) cut off his head and surrendered. Li Wei killed his brothers and also committed suicide, leaving Li Huaiguang with no male-line progeny. Emperor
, he had Duan removed from his post as military governor of Jingyuan Circuit (涇原, headquartered in modern Pingliang, Gansu) and replaced him with Li Huaiguang—a general known for his strictness and harshness. He subsequently ordered Li Huaiguang, Cui Ning, and Zhu to command troops in the construction project. Duan's former subordinate Liu Wenxi (劉文喜), knowing that the Jingyuan troops feared Li Huaiguang, rose in rebellion and submitted a petition ostensibly requesting that Duan be returned or, in the alternative, Zhu be made