 In 785, facing defeat by Tang imperial forces, he committed suicide.Li Huaiguang was born in 729, during the reign of Emperor Xuanzong.His ancestors were Mohe from Balhae, and had originally been surnamed Ru ().