사조의
After a joint Tang and Huige army decisively defeated Shi Chaoyi and recaptured Shi Chaoyi's capital Luoyang, Shi Chaoyi fled north toward Fanyang. Before Shi Chaoyi reached Fanyang, however, Li sent messengers to the powerful Tang eunuch Luo Fengxian () and offered to submit to Tang. He sent his subordinate Li Baozhong () to Fanyang County (a city near, but not the same, as Fanyang) to block off Shi Chaoyi's path, and Shi Chaoyi, after being unable to capture Fanyang County, fled further north. Li Huaixian sent an army to pursue him, and Shi Chaoyi, believing the situation to be hopeless, committed suicide. Li Huaixian cut off Shi Chaoyi's head and presented it to Emperor Xuanzong's grandson Emperor Daizong, ending the Anshi Rebellion.