In 308, Wang's troops advanced on the Jin capital Luoyang, but was repelled. That year, after capturing more territory, Liu Yuan moved his capital to Puzi (蒲子, in modern Linfen, Shanxi) and declared himself emperor, signifying an even more complete break from Jin. In 309, he moved the capital once more to Pingyang (平陽, also in modern Linfen). By this time, Liu Cong and Wang Mi had eventually been able to control all of southern Shanxi for Han Zhao, and they again attacked Luoyang, but were again repelled.