the larger Liao army until reinforcements arrived. In the end, the successful counter repelled the Northern Han back to Taiyuan. The victory raised Zhao Kuangyin up to the post of the grand commander of the palace guards, as well as reorganising and training them. More importantly, he developed the relations with other generals and officials related to the Chief of Palace, including Shi Shouxin, Wang Shenqi (), Yang Guangyi (), Wang Zhengzhong (), Liu Qingyi (), Liu Shouzhong (), Liu Yanrang (), Mi Xin (), Tian Chongjin (), Pan Mei, his brother Zhao Kuangyi, Shen Yilun (), Lu Xuqing, Zhao Pu (), Chu Zhaofu (). Within a few years, Zhao Kuangyin completely controlled the palace guards and even developed a set of officials under him with the people mentioned above. Soon, he was promoted to a jiedushi (military governor), controlling most of the military power under Chai Rong. Nevertheless, he still had two rivals – Zhang Yongde (Guo Wei's son-in-law) and Li Chongjin (Guo Wei's nephew). In 959, after a trap set by Zhao Kuangyin, Zhang Yongde was demoted. After the death of Chai Rong, the Later Zhou throne was left to his seven-year-old son Guo Zongxun, and the second rival, Li Chongjin, soon found himself lacking the political backing. As a result, Zhao Kuangyin was able to use his influence to transfer Li Chongjin to Yang Prefecture as a jiedushi. Coup at Chen Bridge In 960, word reached the chancellor Fan Zhi that Northern Han and Liao dynasties were once again allied to invade them again. Without verifying the reliability of the hearsay, Fan Zhi sent Zhao Kuangyin to combat the alliance. After traveling 40 li, there was a clamour that a "prophet" saw two suns fighting, and that this meant the transfer of the Mandate of Heaven to Zhao Kuangyin. The story effectively spread around the army: there came discontent of the "command" of the young emperor and a shift of loyalty to Zhao Kuangyin. A few days later, when Zhao Kuangyin was drunk in his tent, all the troops had not slept the whole night; they got their weapons and started yelling. Zhao Pu and Zhang Kuangyi, who were guarding the tent, saw the situation and went into the tent to wake up Zhao Kuangyin. When Zhao Kuangyin came out, all the troops yelled, "The army is without a master, we are willing to make the general