In winter 576, Emperor Wu again attacked Northern Qi; this time, changing strategy and attacking Pingyang instead. He was able to capture Pingyang quickly, before Northern Qi troops could arrive. The Northern Qi emperor Gao Wei soon advanced toward Pingyang with a large army, and Emperor Wu, not wanting to engage Gao Wei's army directly, withdrew, leaving the general Liang Shiyan () in charge of defending Pingyang. Gao Wei put Pingyang under siege, and at one point nearly captured it. Emperor Wu, after reorganizing his forces, relaunched his army and headed for Pingyang, seeking to lift the siege. Around the new year 577, he arrived near Pingyang and Gao Wei chose to engage him—but, once the battle began, panicked when his favorite concubine Consort Feng Xiaolian falsely believed that the army had been defeated—and he abandoned the army, causing its collapse. Gao Wei fled to Jinyang, and Emperor Wu gave chase. No longer having the will to fight Emperor Wu, Gao Wei further fled back to the Northern Qi capital Yecheng, leaving his cousin Gao Yanzong in charge of Jinyang. Gao Yanzong launched a counterattack, catching Emperor Wu by surprise and nearly killing him. However, after the victory, Gao Yanzong's army went into a celebration, and he was unable to reorganize it, and Emperor Wu soon defeated and captured him, and headed for Yecheng.