According to the ancestral story of the Wanyan clan, Hanpu came from Goryeo when he was sixty years old, reformed Jurchen customary law, and then married a sixty-year-old local woman who bore him three children. His descendants eventually united Jurchen tribes into a federation and established the Jin dynasty in 1115. " Chinese historians have long debated whether Hanpu was of Silla, Goryeo, or Jurchen ethnicity.