When they arrived at Liangshan Marsh, they saw Chao Gai, Song Jiang, and the other 108 heroes all assembled in the Hall of Loyalty and Righteousness. Chao Gai and Song Jiang came down from the hall to greet him, saying, 'We have long heard of the Jade Unicorn's great reputation. To meet you today is truly a blessing for our stronghold!' They held a feast in his honor, offering fine wine and good meat. Lu Junyi, seeing how these outlaws treated him with such respect and recognizing them as gallant heroes of the martial world, was both startled and impressed. Chao Gai and Song Jiang repeatedly urged him to join their band. Lu Junyi, worried about his family and property, merely insisted on returning home and refused to become an outlaw.
Lu Junyi stayed at Liangshan for a few days. Unable to refuse their hospitality, he finally agreed to 'stay for a while and return after settling his family affairs.' Seeing his determination, Chao Gai and Song Jiang did not force him and let him leave the mountain. When Lu Junyi and his party returned to Daming Prefecture, they found everything at home had changed. It turned out that Li Gu, after Lu Junyi had been away for a hundred days, had secretly committed adultery with Lu Junyi's wife, Pan Jinlian, and seized the family wealth.
Li Gu and Pan Jinlian conspired together, exaggerating Lu Junyi's stay at Liangshan and reporting it to the authorities of Daming Prefecture. Li Gu also used the rebellious poem written by Wu Yong as false evidence to frame Lu Junyi for colluding with Liangshan in rebellion. Liang Zhongshu, the magistrate of the Northern Capital, was enraged upon receiving the accusation and immediately sent soldiers to arrest Lu Junyi.
Lu Junyi was captured and thrown into prison, where he suffered terrible torture in Daming Prefecture. To please his father, Cai Jing, Liang Zhongshu intended to sentence Lu Junyi to death. Fortunately, Yan Qing, being alert, noticed the unusual situation at the Lu residence and secretly investigated to learn the details. Yan Qing seized an opportunity to escape, disguised himself, and rushed overnight to Liangshan to report Lu Junyi's wrongful imprisonment to Song Jiang and Chao Gai. Upon hearing the news, the people of Liangshan were both shocked and furious, vowing to go down the mountain to rescue Lu Junyi.
It is said that Song Jiang, upon learning in the Hall of Loyalty and Righteousness that the Jade Unicorn Lu Junyi had been framed by Li Gu and imprisoned in Daming Prefecture, and that his life hung in the balance, was deeply worried. Song Jiang sent Dai Zong and Li Kui to Daming Prefecture to gather information.