 Reportedly, the first Gurkhan was a Manichaean.Owing to its long sway over China, the ruling dynasty, which the "Twenty-Four Histories" call the Liao dynasty (916–1125), was strongly influenced by Chinese culture.In 1125, a Tungusic people, the Jurchen, allied with the Southern Song, ending the domination of the Khitan.