Lin Xuan traveled to the mass graves outside Lin'an City in the fifth year of Emperor Lizong's reign in the Song Dynasty. After witnessing the Mongolian cavalry massacring the people, he relied on modern military knowledge to save Zhao Da and obtain the fragments of "General Martial Arts". At that time, Jia Sidao was in power, the Song-Mongolian war was stalemate, and the wealthy families in Lin'an City were committing many evil deeds. Lin Xuan formed a rebel army with the slogan "equalize land and avoid taxes". He pretended to be a refugee and found out that the Zhou family had colluded with Mongolian businessmen. He was hunted down after burning the granary, and fled to the slums to meet Su Jin. Afterwards, he joined forces with the rebels to attack the Zhou family, and became famous, but was investigated by the imperial court and had to flee to Sichuan.
In Sichuan and Sichuan, he conquered Zhang Hu and formed the "Blast Camp". Although he was ambushed on the way, he severely damaged the enemy with firearms, and then pretended to join Yu Jie and entered Diaoyu City. He cracked the tactics of the Mongolian navy and was feared by Yu Jie. Yu Jie was assassinated by his subordinates during a banquet, and Lin Xuan took over Diaoyu City. Jia Sidao surrounded and suppressed him, and he repulsed the Song army and forced Lu Wende to make peace with Mongolia. Later, he pretended to submit to Mongolia to spy on the military situation, and joined forces with Dali to train naval forces to attack Mongolian grain ships at night. He severely damaged the Mongolian army and was awarded the title "Commander of Shu".