太武帝
Meanwhile, knowing that Helian Ding was occupied, Emperor Taiwu of Northern Wei made an attack on Tongwan, and Helian Chang initially wanted to recall Helian Ding from Chang'an; instead, Helian Ding advised him to defend Tongwan securely to wear out the Northern Wei forces, and then he, after capture Chang'an, could then return and attack Northern Wei forces on two sides. Helian Chang agreed and did not engage Northern Wei forces. However, subsequently, receiving false information that Northern Wei forces had run out of food, he decided to attack Northern Wei forces and was soundly defeated, and he fled to Shanggui (上邽, in modern Tianshui, Gansu). Northern Wei captured Tongwan. Upon hearing the news of Tongwayn's fall, Helian Ding abandoned his campaign against Daxi and joined Helian Chang at Shanggui. Daxi gave chase, intending to destroy Xia. It might have been at this time that Helian Chang promoted Helian Ding to the title of Prince of Pingyuan.