In 668, Pyongyang became the capital of the Protectorate General to Pacify the East established by the Tang dynasty of China. However, by 676, it was taken by Silla, but left on the border between Silla and Balhae. Pyongyang was left abandoned during the Later Silla period, until it was recovered by Wang Geon and decreed as the Western Capital of Goryeo. During the Joseon period, it became the provincial capital of Pyeongan Province.