One day, Song Jiang, feeling gloomy, went alone to the Xunyang Tower to drink. Moved by his own plight and flushed with wine, he wrote a rebellious poem on the wall, which included the lines: 'If one day I fulfill my soaring ambition, I would dare to laugh at Huang Chao for not being a true man.' After finishing the poem, he returned to his lodging. Unexpectedly, the rebellious poem was seen by Huang Wenbing, the deputy magistrate of Wuwei Commandery. Huang Wenbing had always been treacherous and malicious. Seeing the hidden rebellious intent in the poem, he urgently reported it to Cai Jiu, the prefect of Jiangzhou. Cai Jiu was greatly alarmed upon hearing this and immediately sent men to arrest Song Jiang. Dai Zong heard the news and rushed to the prison to visit Song Jiang, finding him beaten unconscious. Dai Zong was implicated in this matter and was also imprisoned by Cai Jiu.
When the news reached Liangshan Marsh, Chao Gai and the other chieftains were shocked and horrified to learn that Song Jiang and Dai Zong were in custody and at death's door. Wu Yong devised a plan, ordering the chieftains to split into two groups: one group disguised as merchants to infiltrate Jiangzhou, and the other to wait by the great river for reinforcements. At the execution ground, Prefect Cai Jiu ordered Song Jiang and Dai Zong to be brought to the execution ground, where they were about to be beheaded. At the critical moment, with a thunderous roar, Li Kui, the 'Black Whirlwind', charged out from the crowd, swinging his two broad axes like a whirlwind, cutting down the executioners. The Liangshan heroes in the city rose up together, cutting a bloody path.
Chao Gai and the other heroes also charged in from the riverbank, attacking from both sides. For a time, the city of Jiangzhou was filled with the flash of swords and the spray of blood. Song Jiang and Dai Zong were rescued by the heroes. The group made a grand uproar in the city, drove off the pursuing soldiers, and dashed straight to the White Dragon Temple by the river. At the White Dragon Temple, the heroes rested briefly and took stock of their forces. Li Kui and the others, having had a fierce and joyful fight in Jiangzhou city, ate and drank heartily at the temple. After some deliberation, the heroes decided to go to Liangshan Marsh together. From then on, Song Jiang, Dai Zong, and the other heroes marched in great force to Liangshan.