After the imperial generals Li Guangyan and Wu Chongyin captured the Zhangyi outpost Lingyun Fence (陵雲柵, in modern Luohe, Henan) in fall 816, however, Li became apprehensive and submitted a petition offering to submit.