In the middle and late period of the Southern Song Dynasty (the Lizong period of the Song Dynasty), there was a corner of peace, fierce party struggles in the court (during the periods of powerful prime ministers such as Shi Miyuan and Jia Sidao), undercurrents of Jianghu forces, and the threat of the Kingdom of Jin (or Mongolia in the later period) was still there.