李吉甫
Late in 810, Pei suffered a stroke. Subsequently, he resigned his chancellor position and was made the minister of defense (兵部尚書, "Bingbu Shangshu"). Li Jifu was recalled from Huainan to serve as chancellor. Around this time, Pei and his subordinates submitted the compiled records of Emperor Dezong's reign. Subsequently, it was said that because Li Jifu disliked Pei, Pei was further made an advisor to the crown prince Li Ning. Pei died later that year. Initially, no posthumous honors were granted, and only after the imperial attendant Liu Bochu (劉伯芻) submitted a petition pointing out Pei's faithfulness was Pei given posthumous honors.