It is said that Song Jiang was exiled to Jiangzhou; the prefect Cai Jiu dispatched Dai Zong to take charge of his custody. This Dai Zong was a prison warden of the two prisons in Jiangzhou, known as the 'Magic Messenger,' who possessed the art of superhuman speed, covering eight hundred li in a single day. Under his command there was a young jailer called Li Kui, the Black Whirlwind, a man of rough and reckless nature, yet obedient to Dai Zong. Song Jiang befriended these two, and they got along very well. One day, Song Jiang went alone to the Xunyang Tower to drink. While drunk and overcome with emotion, he wrote a poem in the tune of 'Moon over the West River' on the whitewashed wall, including the lines: 'If one day I fulfill my soaring ambition, who dares to laugh at Huang Chao for not being a true man?' Little did he expect that this poem would be seen by Huang Wenbing, a judge of Jiangzhou. This Huang Wenbing, known as 'a knife in his pen and a sword in his mouth,' was a treacherous man. As soon as he saw the rebellious poem, he treated it as a precious find and immediately went to inform Prefect Cai Jiu. Cai Jiu was greatly alarmed and at once sent men to arrest Song Jiang and throw him into prison, where he was severely tortured; he also had Dai Zong seized, accusing him of colluding with Song Jiang.
It is said that after Dai Zong was captured by Prefect Cai Jiu, Cai Jiu ordered him to deliver a letter to Liangshan Marsh—ostensibly to request official documents, but in reality to test his connection with Liangshan. Helpless, Dai Zong used his magic walking technique and reached Liangshan Marsh in one day, informing the heroes there of how Song Jiang had been framed and was languishing in prison. Wu Yong took Cai Jiu's letter, read it once, and sneered: 'This is Cai Jiu's scheme to deceive Dai Zong; the letter is full of flaws and clearly intended to claim Brother Song Jiang's life!'
Chao Gai flew into a rage upon hearing this and roared: 'How could I, Chao Gai, be ungrateful! If I do not rescue my brother, how can I face heaven and earth?' He then discussed plans with Wu Yong, deploying all the chieftains to descend the mountain in batches, in disguise, and rush to Jiangzhou under cover of night, waiting only for the right moment to stage a great riot at the execution ground and rescue Song Jiang and Dai Zong.