Upon hearing this, Song Jiang was overjoyed and repeatedly praised the idea. Yan Qing then went to seek a connection through Li Shishi. Relying on his own abilities, he made acquaintance with Li Shishi and explained Song Jiang's loyalty in acting on Heaven's behalf, as well as his earnest desire for amnesty. Li Shishi, having long known of the righteous reputation of Liangshan Marsh, and seeing that Yan Qing was clever and intelligent, agreed to help.
That Li Shishi indeed did not disappoint. When Emperor Huizong of Song arrived at her place, Li Shishi skillfully reported to him the situation of the heroes of Liangshan Marsh desiring amnesty and acting on behalf of Heaven. The emperor, upon hearing this, was surprised, so he summoned Yan Qing for a detailed inquiry. Yan Qing, neither humble nor arrogant, explained one by one that Song Jiang and others had gathered at Liangshan Marsh to actually eliminate bullies and help the good, but they were distressed that they had no way to serve the court. After hearing this, the emperor was deeply moved, believing that Song Jiang and others were not rebels, and thus inclined to grant amnesty.
The next morning at court, the emperor proposed the matter of granting amnesty to Liangshan Marsh. Cai Jing, Gao Qiu, and a group of treacherous officials strongly opposed it, speaking slanderously: 'Your Majesty, these are mere bandits and outlaws; how can they be granted amnesty? I fear their pretended submission will lead to endless troubles in the future!' Although the emperor was somewhat hesitant, recalling what Yan Qing had said and moved by compassion, he eventually overrode all objections and issued a decree of amnesty.
The emperor then issued a royal edict, sending Grand Secretary Chen Zongshan as an imperial envoy to carry the decree to Liangshan Marsh and proclaim the amnesty. Dai Zong had already sent word flying to Liangshan Marsh, and all the chieftains were overjoyed upon hearing the news, feeling that their long-cherished wish had finally been fulfilled. Song Jiang was especially restless, eagerly looking forward to it with anticipation.