In ancient Chinese history it is recorded that The Northern Song Dynasty (960-1127 AD) battled for 200 years with the Liao and Jin Dynasties, which at the time were ruled by minority races from China's Northern Territories, the Khitan and Jurchens respectively.