The Wall[長城] construction associated with new JuJin-based fortress in the northeastern border was proceeded by stages. It was an offensive strategy that accompanied a few battles. The Goryeo dynasty had enlarged it's power for Jurchens lived in the nearby border. The outskirt households[蕃戶] located at the Wall side area were started to be registered by the Goryeo government. And some of Jurchen villages were newly designated as the autonomous yet subordinate villages[羈縻州] of the Goryeo dynasty. Standard administrative procedures were registration of households, designation of the Ju title, and the bestowal of the Jugi[朱記] certificate.
The autonomous yet subordinate village such as Wigaeju[威鷄州] had been managed at the northeastern border in 1038. And It was expanded in 1073. Autonomous yet subordinate villages named with one letter[一字名 羈縻州]-such as Gongju[恭州], Onju[溫州], Seongju[誠州], and Seongju[城州]-had been designated at that time. This policy of the Goryeo dynasty means that autonomous yet subordinate village named with one letter was treated nominally on the same footing with Ju[州] of the Goryeo dynasty.
But it was variable by the trend of Jurchen villages and chiefs of Jurchen tribes. The Goryeo dynasty was faced with resistance of Jurchen people lived at Hamheung[咸興] region in December 1080. And autonomous yet subordinate villages were destroyed by the Jurchen-based Wananbu[完顔部] forces. The Goryeo forces were not able to counteract the Jurchen forces' invasions successfully at Jeongju[定州] area and had to suffer repeated defeats in 1104.
In December 1107, fortresses were constructed in areas like Yeongju[英州], Wungju[雄州], Bokju[福州] and Gilju[吉州]. Another fortresses were built in Hamju[咸州] and Gongheomjin[公嶮鎭] in February 1108. The government's original intention was to build these six fortresses. The Goryeo forces actually intended to construct both the six fortresses and the Gilju-gwan[吉州關] Pass in the form of the wall. The Long Fortress of Mt. Mawunryeong[磨雲嶺長城] confirmed in Shinjeung Dongguk Yeoji Seungram[『新增東國輿地勝覽』] is the remains of that facility. After loosing buffer areas, the Goryeo government decided to employ this policy which would enable them to rule the border regions directly.
On March of the year 1108, the Goryeo forces led by Yun Gwan[尹瓘] passed the region they originally planned to reach, and moved deep inside the Jurchen territory. They established Pyeongyungin[平戎鎭] fortress and established additional presence in the area of Seonju[宜州] and Tongtaejin[通泰鎭]. After completing the construction of the nine fortresses throughout couple of stages, Yun Gwan and Oh Yeon Chong were honored with meritorious titles and governmental positions, and then honorarily returned to the Gaegyeong capital. The celebration of their return symbolized the successful completion of the frontier campaign. It also marked the beginning of the idea of “(Yun Gwan's) Nine Fortresses”.
Yet military conflicts with the Jurchen troops under the Wananbu leadership continued to worsen. The Goryeo forces tried to reinforce their defenses by constructing additional fortresses like Sungnyeongjin[崇寧鎭], Jinyangjin[眞陽鎭] and Seonhwajin[宣化鎭]. But Gongheomjin[公嶮鎭] and Pyeongyungjin[平戎鎭] fell to the attack of the Wananbu forces. The Goryeo dynasty had to share borders with Wananbu through the Wall, due to the failure of constructing fortresses.