 In 1216, a hawkish faction in the Jin imperial court persuaded Emperor Xuanzong to attack the Song dynasty, but in 1219 they were defeated at the same place by the Yangtze River where Wanyan Liang had been defeated in 1161.The Jin dynasty now faced a two front war that they could not afford.Furthermore, Emperor Aizong won a succession struggle against his brother and then quickly ended the war and went back to the capital.