발해 상경성은 발해의 세 번째와 다섯 번째의 도성이었고, 약 162년 동안 발해문화의 중심지였다. 하지만 상경도성이 언제 계획, 시축, 완공되었는지에 대해서는 아직 분명하지 못하다. 그 기원문제와 관련해서는 혹은 당 장안성과의 혹은 고구려 안학궁성과의 유사성을 강조하는 의견들이 있어왔다. 이 글에서는 상경도성의 구조와 축조 기간문제에 대한 검토, 주변국 도성과 당 지방성 및 고구려 안학궁성과의 비교를 통해 상경도성이 계획도시였음을, 도성의 핵심지역인 궁성은 고구려 안학궁의 예를, 도성의 전체적인 평면구조는 당 장안성의 예를 각각 따르고 있음을 밝혔다. 전자는 발해가 고구려의 계승자임을 과시하는 것이고, 후자는 발해가 황제의 나라임을 천하에 드러내고자 하였기 때문인 것으로 이해된다. 그 외에도 상경도성에 보이는 백제의 건축요소들과 발해 고유의 문화요소들도 지적하였다. 발해 상경도성이 황제도성인 근거는 4가지로 집약된다. 첫째, 발해 상경성과 매우 흡사한 평면구조를 가지는 수당 장안성과 일본의 헤이죠쿄는 모두 황제 혹은 천황의 도성이었다. 황제도성 이외에는 그와 같은 구조의 도성을 그 어디에서도 찾을 수 없다. 둘째, 엄격한 등급제도에 따라 축조된 당의 지방성들 중에는 수당 장안성 혹은 발해 상경성과 동일한 구조를 가진 성이 없다. 당의 지방 실력자들 중 그 누구도 감히 황제의 도성을 모방하지 못하였던 것이다. 이는 발해 상경성이 당의 지방성이 아니라 황제의 도성이었음을 반증하는 것이다. 셋째, 발해 상경도성에는 소위 수당 장안성의 ‘등급’ 혹은 ‘예제’를 벗어나는 시설들이 적지 않다. 예를 들어, 궁성 북문의 문길의 수, 외성 정문과 궁성 정문의 동서 길이, 황성 중구의 너비 등이 모두 발해 상경성이 당 장안성에 비해 높은 등급을 보인다. 그 외에도 상경성 궁성 제2궁전은 칸 수와 기단의 정면 동서 길이에서 수당 장안성의 그 어떤 궁전건물보다도 장대하다. 수당 장안성보다 더 웅대한 건축물들은 황제도성이 아니면 있을 수 없는 것이다. 넷째, 문헌 혹은 명문자료에 보이는 발해 고유의 연호, 황상, 황후, 천손 등과 같은 황제와 관련된 용어이다.
Upper Capital (Sang-gyeong castle) of Balhae was the third and fifth capital city of Balhae and a center of Balhae culture. However, it is not clear yet when Upper capital city (Sanggyeong capital city) was planned and when its construction began and was completed. There were opinions on its origin, emphasizing its similarity to the Chang’an City of Tang dynasty or Anhakkung Palace of Koguryo. In this article we studied the structure of Upper capital city and period of its construction and carried out a comparative analysis with capital cities of surrounding countries and provincial towns of Tang China and Anhakkung Palace of Koguryo. Because of this, we concluded that Sang-gyeong capital city was a prearranged city, its Palace of nuclear area of the capital city followed Anhakkung Palace of Koguryo, its floor plan followed Chang’an City of Tang dynasty. The first fact evidences that Balhae demonstrates inheritance of Koguryo, the second one that Balhae makes itself known as an imperial state. In addition, in the article we marked architectural elements of Baekje and cultural elemesn tusual in Balhae. There are four facts proving that Sang-gyeong capital city ofa lBhae is Imperial capital City. First, Chang’an City of Sui and Tang dynasty and Heijokyo capital city of Japan, that had similar layout to Sang-gyeong capital city of Balhae, are imperial cities. Except imperial cities, anywhere there is no such layout. Second, among provincial towns of Tang China, which were built according to strict rules of rank, there is no layout like Chang’an City of Sui and Tang dynasty and Sang-gyeong capital city of Balhae’s ones. None of the local forces could not have copied the capital city of the emperor. This fact confirms that Sang-gyeong capital city of Balhae was not the provincial town of Tang China, and vice versa was an imperiaitl yc. Third, in Sang-gyeong capital city of Balhae there are many buildings that were built in violation of so-called grade or system of etiquette of Chang’an City of Sui and Tang dynasty. For example, the number of passages at the north gate of the palace city (North Gate of Palace), the length of the central gate of the outer city and of the palace city from east to west, and the width of the central sector of imperial city has higher rank than the Chang’ an City of Sui and Tang dynasty. In addition, Second Hall of Palace of Sang-gyeong capital city by number of kans and the length of the basement from east to west from the front is superior to any palace building of Chang’an City of Sui and Tang dynasty. Buildings that are bigger than in Chang’an City of Sui and Tang dynasty, could not be anywhere but in imperial city. Fourth, in written sources and inscriptions of Balhae there are the terms associated with emperor, as “year of the reign”, Hwangsang (Majesty), Hwanghu (Empress), Cheonson (grandson of the sky), etc.