Inside the city, Dai Zong and Yan Qing saw the fire and rushed into the prison, ordering Cai Fu and Cai Qing to act. Cai Fu and Cai Qing then unlocked Lu Junyi's shackles and, together with Dai Zong and Yan Qing, helped him escape from the prison amid the chaos. At this time, the city was in complete turmoil; under the glow of the fire, shouts of battle rose from all sides, and both officials and civilians ran about crying out, unable to tell their direction.
Although Lu Junyi was weak, having escaped from prison, his spirit lifted slightly. The group protected him and charged toward the east gate. Just then, a large force from Liangshan Marsh arrived, and several brave generals fought valiantly to open the city gate. Seeing the gate already open, Song Jiang let out a great shout and led his men to storm into the city. With the two armies coordinating from within and without, their momentum was unstoppable, and the gates of Daming Prefecture were thrown wide open.
The heroes of Liangshan Marsh stormed into the city and engaged in a chaotic battle with the government troops under Liang Zhongshu. Generals like Li Cheng and Wen Da could not withstand the assault and retreated step by step. Under the protection of Dai Zong and Yan Qing, Lu Junyi finally joined up with Song Jiang. Seeing Lu Junyi in such a state, Song Jiang felt a pang of sorrow and urgently ordered people to help him into a carriage and quickly send him out of the city to settle down.
In this battle, Liangshan Marsh thoroughly defeated Daming Prefecture, capturing Suo Chao alive, and later won over generals like Guan Sheng, seizing countless supplies and weapons. Liang Zhongshu, Li Cheng, Wen Da, and others fled in disgrace, not daring to fight again. Seeing that the mission was accomplished, Song Jiang ordered a retreat, leading Lu Junyi and all the officers and soldiers back in triumph, returning to Liangshan Marsh.
Back at the Hall of Loyalty and Righteousness, the heroes held a banquet to celebrate their success. Song Jiang recalled Chao Gai's dying words, which stated that whoever captured Shi Wengong would become the master of Liangshan Marsh. Although Lu Junyi had suffered injustice and hardship, he had not yet accomplished this feat, so Song Jiang remained the chieftain for the time being. However, all the leaders of Liangshan Marsh pressed for Lu Junyi to take the top seat, believing that with his supreme martial arts and fame across the land, he was the rightful holder of the first chair.