 Their capital was located south of Hancheng in Shaanxi.During the 8th and 7th centuries , they were involved in various alliances against the hegemony of Jin.In 642 , the count constructed a new capital for his realm only to have it seized by Qin upon its completion.