One night, when the emperor visits Li Shishi, he is surprised to find Yan Qing in her chamber. Li introduces him as her cousin. After entertaining the emperor with some ballads, Yan tells the monarch he knows the Liangshan outlaws and relays their wish for an amnesty. At Li Shishi's insistence, the emperor writes an edict that grants Yan immunity from the law. He also promises to consider pardoning Liangshan. After that, Yan Qing and Dai Zong visit Grand Marshal Su Yuanjing, who agrees to put in a good word for Liangshan.