Li Siyuan appeared to be initially hesitant to take the throne himself, as at that time, Li Cunxu's son Li Jiji the Prince of Wei, who had been the commander of the army that destroyed Former Shu, was returning from the Shu lands and heading toward Luoyang with his army, and he initially signaled support for Li Jiji. However, after apparently concluding that he would not be tolerated if Li Jiji became emperor, he sent Shi Jingtang and Li Congke to take up defensive positions at Shan Prefecture (陝州, in modern Sanmenxia, Henan) and Hezhong Municipality (河中, in modern Yuncheng, Shanxi) respectively, to block Li Jiji. Li Jiji's own soldiers began to desert, and he committed suicide. Li Jiji's subordinate Ren Huan took over command of the remaining army and rendezvoused with Shi, signaling support for Li Siyuan. With Li Jiji dead, Li Siyuan claimed the throne.