魏朝
The area was first incorporated under Emperor Xiaozhuang of the Northern Wei Dynasty in 528 CE under the name Anze County (). The county was placed under the administration of upon its formation in 596 CE, during the Sui Dynasty.