)In Yuanyou1 (1086), the Song emperor Zhao Xu (posthumously known as "Emperor Zhezong" or the "Wise Ancestor") changed the name of the county to Wanting.Under the Jin, the county seat at Yuanqu was destroyed by the flood of the Yellow River in Dading8 (1168).