Temüjin was related on his father's side to Khabul Khan, Ambaghai and Qutula Khan who had headed the Mongol confederation. When the Chinese Jin Dynasty switched support from the Mongols to the Tatars in 1161, they destroyed Khabul Khan. Genghis's father, Yesügei (leader of the Borjigin and nephew to Ambaghai and Qutula Khan), emerged as the head of the ruling clan of the Mongols, but this position was contested by the rival Tayichi’ud clan, who descended directly from Ambaghai. When the Tatars grew too powerful after 1161, the Jin switched their support from the Tatars to the Keraits. When Yesügei was poisoned, Temüjin who was only 13, became leader.