 After the Jin incursion that almost captured Gaozong , the sovereign ordered pacification commissioner Zhang Jun ( <unk> – 1164 ) , who was in charge of Shaanxi and Sichuan in the far west , to attack the Jin there to relieve pressure on the court . Zhang put together a large army , but was defeated by Wuzhu near Xi 'an in late 1130 . Wuzhu advanced further west into Gansu , and drove as far south as <unk> ( <unk> , modern <unk> ) . The most important battles between Jin and Song in 1131 and 1132 took place in Shaanxi , Gansu , and Sichuan . The Jin lost two battles at <unk> Yuan in 1131 . After failing to enter Sichuan , Wuzhu retreated to Yanjing . He returned to the western front again from 1132 to <unk> . The Jin attacked Hubei and Shaanxi in 1132 . Wuzhu captured <unk> Yuan in 1133 , but his advance was halted by a defeat at <unk> Pass . He gave up on taking Sichuan , and no more major battles were fought between the Jin and Song for the rest of the decade . 
