Emperor Taizong claimed to be the emperor of China as well, and he took over the imperial administration structure left over from Later Jin, the territory of which largely submitted to him as emperor at that point. He commissioned He Ning as chancellor again with the titles of
Zhongshu Shilang and
Tong Zhongshu Menxia Pingzhangshi, serving along with
Zhang Li, a formerly Later Tang imperial scholar whom he had captured during Later Tang's fall and who then served him after that point. However, the subsequent misrule by Emperor Taizong over the former Later Jin territory caused many rebellions to break out through the realm, and he decided to withdraw back Liao proper. He took many of the ethnically
Han Chinese officials with him, including He Ning, leaving his brother-in-law
Xiao Han in charge of Kaifeng as the military governor of Xuanwu Circuit (宣武, headquartered at Kaifeng). However, Emperor Taizong fell ill on the way and would not reach Liao proper alive, dying near Heng Prefecture (恆州, Chengde's capital). In the aftermaths of Emperor Taizong's death, the Liao general
Zhao Yanshou (also a son-in-law of Li Siyuan's, who was also captured by Emperor Taizong when Later Tang fell), to whom Emperor Taizong had previously promised the Chinese throne but then reneged on the promise, tried to take over Heng and claim the title of regent over the southern court (i.e., the former Later Jin domain). The ethnically Khitan Liao generals, however, had already resolved to support Emperor Taizong's nephew
Yelü Ruan the Prince of Yongkang, Believing that his grandmother (Emperor Taizong's mother)
Empress Dowager Shulü would not agree to his ascension (as she favored his uncle (Emperor Taizong's younger brother)
Yelü Lihu), Emperor Shizong headed north to contend with her. Most of the ethnically Han officials accompanying Emperor Taizong were left at Heng, and he left Emperor Taizong's cousin Yelü Mada () in charge of Heng. Subsequently, Emperor Shizong sent an edict to Heng, ordering He Ning and a number of other Han officials, including fellow chancellors
Feng Dao and
Li Song, to rendezvous with him for Emperor Taizong's burial. However, at that time, a rebellion by the Han soldiers against Yelü Mada, led by the officers Bai Zairong () and
Li Rong, broke out at Heng. Initially, Yelü Mada's Khitan soldiers had the upper hand in street battles, but a turning point came when the official
Li Gu, asked He Ning, Feng, and Li Song to visit the battle scene to encourage the Han soldiers. When the soldiers saw the three senior chancellors, they were encouraged, and they fought harder, eventually expelling the Khitan soldiers out of the city. Subsequently, the soldiers supported Bai to be the acting military governor of Chengde, so that he could submit to Later Han and seek aid. Meanwhile, Bai, who was greedy, wanted to kill Li Song and He Ning to seize their wealth. Li Gu rebuked him, pointing out that if he did so, the new Later Han emperor would surely have him punished, so Bai did not do so. Bai subsequently submitted the region to the sovereignty of
Liu Zhiyuan, a former Later Jin military governor of Hedong who had declared himself emperor of
Later Han. == During Later Han ==