It is said that Song Jiang was exiled to Jiangzhou, where Prefect Cai Jiu assigned Dai Zong to look after him. Dai Zong was the head jailer of the two prisons in Jiangzhou, known as the 'Magic Traveler,' possessing the art of traveling supernaturally, able to cover eight hundred li in a day. Under his command was a young jailer called Li Kui, the Black Whirlwind, who was rough and reckless by nature yet obedient to Dai Zong. Song Jiang met the two men and got along very well with them. One day, Song Jiang went alone to the Xunyang Tower to drink. In his cups, feeling melancholy, he wrote a poem to the tune 'West River Moon' on the whitewashed wall, which included the lines: 'If someday I fulfill my soaring ambition, I dare laugh at Huang Chao for not being a true man.' Unexpectedly, this poem was seen by Huang Wenbing, the Jiangzhou deputy magistrate. This Huang Wenbing was known as having 'a knife in his pen and a sword in his mouth,' and he was a treacherous man. Upon seeing the rebellious poem, he treated it as a precious find and immediately went to inform Prefect Cai Jiu. Cai Jiu was greatly alarmed upon hearing this. He immediately sent men to arrest Song Jiang and throw him in prison, subjecting him to severe torture. He also arrested Dai Zong, 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, this was to request the transfer of official documents, but in reality, it was to test whether he was in league with the outlaws of Liangshan. Dai Zong had no choice but to employ his supernatural traveling technique, arriving at Liangshan Marsh in a single day. He informed the heroes there about how Song Jiang had been framed and was now in prison. Wu Yong took Cai Jiu's letter, read it once, and sneered, 'This is Cai Jiu's scheme to trick Dai Zong. The letter is full of flaws; clearly, he intends to kill Brother Song Jiang!'
Chao Gai was enraged upon hearing this and shouted, 'How could I, Chao Gai, be so disloyal? If I don't rescue my brother, how can I face heaven and earth?' Thus, he consulted with Wu Yong and dispatched a number of chieftains, who went down the mountain in groups, disguised themselves, and rushed to Jiangzhou overnight, waiting for the right moment to start a great uproar at the execution grounds and rescue Song Jiang and Dai Zong.