The Liangshan outlaws finally receive amnesty from the emperor with the help of the courtesan Li Shishi and other government officials. Xiao Rang participates in campaigns against the Liao invaders and rebel forces in Song territory, which are ordered by the court as a way for the outlaws to atone for their crimes.