When they arrived at Liangshan Marsh, they saw that on the Hall of Loyalty and Righteousness, Chao Gai, Song Jiang, and the other 108 heroes were all present. Chao Gai and Song Jiang descended from the hall to welcome him, saying: 'We have long heard of the great reputation of the Jade Unicorn. To meet you today is truly a blessing for our stronghold!' A banquet was prepared in his honor, with fine wine and choice meats served. Lu Junyi saw that these bandits treated him with such courtesy, and that they were all gallant men of the rivers and lakes. Though startled in his heart, he also admired them. Chao Gai and Song Jiang repeatedly pressed him to stay, wanting him to join their ranks. Lu Junyi’s heart was set on his family’s property, wife, and children; he only insisted on returning home, refusing to become an outlaw.
Lu Junyi stayed at Liangshan Marsh for several days. Unable to fend off their entreaties, he could only agree to 'remain for a short time, returning once my family affairs are settled.' Seeing his determination, Chao Gai and Song Jiang did not force him to stay and merely let him go down the mountain. When Lu Junyi and his party returned to Daming Prefecture, they found that things had changed and people were no longer the same. It turned out that Li Gu, seeing that Lu Junyi had been away from home for a hundred days, had committed adultery with Lu Junyi’s wife, Pan Jinlian, and usurped the family wealth.
Li Gu and Pan Jinlian conspired together, embellished the story of Lu Junyi’s stay at Liangshan Marsh, and reported it to the authorities at Daming Prefecture. Li Gu also used the seditious poem written by Wu Yong as false evidence accusing Lu Junyi of colluding with Liangshan for rebellion. When the Grand Secretary of the Beijing Pacification Office, Liang Zhongshu, received the complaint, he flew into a rage and immediately sent troops to arrest Lu Junyi.
Lu Junyi was arrested and thrown into prison, suffering torture in Daming Prefecture. To curry favor with his father, Cai Jing, Liang Zhongshu wanted to convict Lu Junyi and have him executed. Fortunately, Yan Qing was alert; noticing something amiss at the Lu residence, he secretly investigated and learned the truth. Yan Qing found a chance to escape, disguised himself, and traveled overnight to Liangshan Marsh to report to Song Jiang and Chao Gai how Lu Junyi had been wrongfully imprisoned. When the Liangshan Marsh company heard the news, they were both shocked and furious, swearing to go down the mountain to rescue Lu Junyi.
Meanwhile, on the Hall of Loyalty and Righteousness, Song Jiang learned that the Jade Unicorn, Lu Junyi, had been framed by Li Gu and imprisoned in Daming Prefecture, his fate unknown. Worried, Song Jiang sent Dai Zong and Li Kui to Daming Prefecture to gather intelligence.