Most of Qinghai was once also a short time under the control of early Ming dynasty, but later gradually lost to the Khoshut Khanate founded by the Oirats. The Xunhua Salar Autonomous County is where most Salar people live in Qinghai. The Salars migrated to Qinghai from Samarkand in 1370. The chief of the four upper clans around this time was Han Pao-yuan and Ming granted him office of centurion, it was at this time the people of his four clans took Han as their surname. The other chief Han Shan-pa of the four lower Salar clans got the same office from Ming, and his clans were the ones who took Ma as their surname.