As soon as Gongsun Sheng arrived at Gaotangzhou, he discussed with Song Jiang the strategy to defeat the enemy. The next day, the two armies faced off again. Gao Lian once again used sorcery, unleashing flying sand and rolling stones, with black smoke rising to the sky. Gongsun Sheng sneered coldly, stepped in the pattern of the Big Dipper, chanted incantations, made hand seals, and summoned a golden-armored deity, instantly breaking all of Gao Lian's sorcery. Seeing his magic broken, Gao Lian was greatly alarmed and hurriedly fled in defeat. The Liangshan army seized the advantage and pursued, but Gao Lian escaped back into the city and dared not come out again.
Song Jiang ordered an assault on the city, but Gao Lian, on the city wall, released a gourd that summoned many heavenly soldiers and generals. Gongsun Sheng, in the midst of the battle, used talisman water to counter it, instead subduing all of Gao Lian's magic. With his sorcery exhausted, Gao Lian was hit by an arrow from Hua Rong while on the city wall, struck his horse, fell, and died. The Liangshan army surged in, broke into Gaotangzhou, and rescued Chai Jin from the death cell. Chai Jin was haggard and on the verge of death. Song Jiang was overjoyed and comforted Chai Jin. The heroes of Liangshan Marsh returned to the mountain in triumph, and the battle of Gaotangzhou was finally victorious.
It is said that after Gao Lian died, Gao Qiu, upon learning of his brother's tragic death at the hands of Liangshan Marsh, flew into a rage and quickly reported it to the emperor. The emperor, enraged upon hearing the report, immediately ordered Grand Marshal Gao Qiu to muster troops. Gao Qiu recommended Huyan Zhuo, a descendant of a renowned founding general and commander of the Imperial Guard, as the military commander, and also appointed Han Tao, the militia commissioner of Chenzhou, and Peng Qi, the militia commissioner of Yingzhou, as deputy commanders. They led a great army of ten thousand troops, crafted fine armored horses, drilled the linked cavalry formation, and set out day and night to exterminate Liangshan Marsh.
Huyan Zhuo received the imperial decree, took leave of the emperor, mustered the troops, and marched with great fanfare toward Liangshan Marsh. Upon hearing the report, Song Jiang knew it was the imperial army approaching and dared not be negligent. He deployed his generals and went out to meet them. The two armies faced off outside Gaotangzhou. Huyan Zhuo deployed the linked cavalry formation, tying three horses together with iron chains into one unit, charging forward unstoppably. The generals of Liangshan Marsh, encountering this formation for the first time, were caught off guard. Although Dong Ping, Suo Chao, and others fought fiercely, they were thrown into disarray by the linked cavalry, suffering many casualties. Seeing the power of the linked cavalry, Song Jiang had no choice but to sound the gong to retreat, temporarily avoiding the onslaught.