고구려 멸망 후 고구려 고지에는 고구려 부흥운동이 거세게 일어났는데, 가장 잘 알려진 것이 검모잠과 안승에 의해 한성에 세워진 고구려국이다. 이에 당에서는 고간을 행군총관으로 파견해 이들을 토벌하게 하였다. 안승은 검모잠을 살해하고 신라로 투항했으며, 신라는 이들을 지금의 익산인 금마저에 안치시켰다. 그 시기는 670년 6월 경이며, 7월에는 안승을 고구려왕으로 책봉하였다. 신라에서는 웅진도독부를 축출하기 위해 당과 무력으로 충돌하게 되었고 이를 위해 한성 고구려국을 지원하고 있었다. 그러나 그 세력이 압록강 유역까지 확대되자 고구려의 국도였던 평양으로 옮기고자 하는 검모잠 세력과 당의 토벌기간 동안 신라로 피해 있고자 하는 안승 세력과의 알력다툼에서 검모잠이 살해되었다. 이는 한성 고구려국이 평양으로 근거지를 옮기게 되면 신라에서 이들을 통제하기에 어려울 것이라는 판단에 의해 금마저 이치는 신라에서 먼저 제안한 것으로 보인다. 신라는 금마저에 정착한 안승을 고구려왕으로 책봉하였는데, 이는 고구려 고지에서 대당항쟁을 벌이고 있는 부흥운동 세력을 신라에서 통제할 수 있는 명분을 마련하기 위한 것이었다.
검모잠은 살해되고 안승도 신라로 갔지만 고구려고지에서의 부흥운동은 673년까지 치열하게 전개되었다. 특히 평양을 비롯한 황해도 일대에서는 밀고 밀리는 접전이 이어졌는데 그 세력에 대해 신당서 고려전에서는 ‘평양의 패잔병’이라 하였다. 이들의 주요 활동지역이나 세력 규모와 조직력으로 볼 때 한성 고구려국의 세력으로 볼 수 있을 것이다. 뒤에 금마저의 고구려국에서 대장군으로 언급되는 고연무가 이들을 이끄는 수장으로서 활약했던 것으로 보인다. 지도부의 분열로 인해 평양의 안동도호부를 상실하기도 했지만, 고구려 전역에서 벌어지고 있는 반당활동으로 인해 서둘러 위기를 극복할 수 있었던 것으로 보인다. 신라의 원조가 계속되고 있음도 이들이 다시 당군에 대한 항쟁을 지속할 수 있는 원동력이었을 것이다. 그러나 신라가 웅진도독부가 있는 백제고지를 정복한 이후에 신라의 고구려 부흥운동 세력에 대한 지원은 점차 형식적이고 보여주기 식으로 전환되고 있었다. 더욱이 당에서는 부흥운동 세력이 장기화되고 신라와 연계되어 있음을 알고 신라에 대한 공방과 이들에 대한 진압이 더욱 거세지자 고구려 부흥군은 점차 남쪽으로 밀리게 되었다. 황해도 지역을 상실하고 임진강 유역의 호로하 전투에서 대패하게 되면서 이들이 신라로 향하게 되자 고구려고지에서 당군에 맞선 고구려 유민의 저항은 4년 만에 종결짓게 되었다.
금마저에 정착한 안승 집단은 고구려식의 관등체계를 정비하고 5부 체제로 재편하면서 국가로서의 위상과 체제를 갖추어 나갔다. 또한 왜국에 사신을 보내면서 외교업무도 개시하였다. 673년 고구려 고지에서의 부흥운동이 실패하면서 결합하게 된 부흥운동 세력은 이미 자리를 잡고 있는 안승의 세력으로 인해 금마저에서 주도권을 잡기 어려웠다. 신라는 674년 안승을 보덕왕으로 책봉했는데 이는 신라의 부용국으로 그 위상이 격하되었음을 의미한다. 그러나 국호는 여전히 대외적으로 사용되는 명칭 등을 볼 때 고구려를 유지하고 있었던 것으로 보인다.
신라는 683년 안승을 왕경으로 불러 진골귀족으로 편입시키면서 금마저의 고구려국을 해체하고 보덕성이라는 신라의 지방 지배체제 내로 흡수하였다. 이에 보덕성에서 반란이 일어났고 그 반란은 백제 유민들과 결합하면서 확대되었다. 보덕성의 고구려유민들은 지금의 안성인 가잠성까지 진출해 신라에 저항했으나 실패하였다. 백제인들의 반란은 좀 더 지속되었는데, 이는 보덕성의 고구려인에 대한 수습보다 1년 혹은 2년 뒤에 그 지역에 대한 주현제도 정비나 9서당 편제를 통해 알 수 있다. 이러한 백제 유민들의 저항 규모로 볼 때 이들의 반신라 경향은 상당히 오래 전부터 준비되어 있었을 것이다. 이러한 구백제 지역의 분위기를 파악한 신라정부가 이에 대한 우려로 서둘러 금마저의 고구려국을 해체했던 것이며, 그 반작용이 보덕성의 고구려 유민들이 백제유민들과 결합해 반란을 일으켰던 것으로 보인다. 신라에 의해 보덕성의 고구려 유민들의 반란이 진압되면서 이들의 흔적은 역사 속으로 사라지게 되었다.After the fall of Goguryeo, the revival movement of former Goguryeo took place in ex-Goguryeo territory, the most well-known is the revival Goguryeo kingdom, which was conducted in Hanseong by Geommozam(검모잠) and Anseung(안승). The Tang Dynasty sent Gogan(고간) as its army commander to punish them. Anseung killed Geomozam and surrendered to Silla, and Silla placed them in Geummajeo(금마저), now Iksan(익산). The period was around June 670, and in July, Anseung was appointed as King of Goguryeo by the King of Silla. Silla fought against Tang Dynasty by force to defeat Unjin Dodokbu(웅진도독부) and was supporting Goguryeo in Hanseong(한성). However, as its influence expanded to the Yalu River(압록강) basin zone, Geomozam was killed in a conflict between the Geomozam factions, which wanted to move to Pyongyang(평양), the capital of former Goguryeo, and the Anseung forces that wanted to move to Silla during the war with Tang Dynasty. This seems to be the first suggestion from Silla to go to Geummajeo, judging that it would be difficult to control the ‘Hanseong Goguryeo’ government located if its base moved to Pyongyang. Silla appointed Anseung, who settled in Geummajeo, as king of Goguryeo, in order to justification for controlling the revivalist forces, which is fighting against the Tang Dynasty in Goguryeo's old territory.
Geomozam was killed and Anseung went to Silla, but the revival movement in former Goguryo's Territory was fierce until 673. In particular, there were push-and-pull battles in the area of Hanganghae province(황해도) including Pyongyang, the group of resistance in which was called "'the remnants of Pyongyang" in Chinese historical records, which can be regarded as the forces of Hanseong Goguryeor in terms of their major activity area, size and organizational. Goeyeonmu(고연무), who was known as a general in Goguryeo of Geummajeo, appears to have been the leader of the group. Despite the loss of Liaodong Tu-Hu-Fu(안동도호부) in Pyongyang due to the division of the leadership, they seem to have been able to get over the crisis in haste because of their activities against the Tang Dynasty in Goguryeo. The continuing aid of Silla could have made them continue to fight against Tang Dynasty army. However, after Silla conquered Baekjae's old territory with Unjin Dodokbu, Silla's support for the Goguryeo revival movement group was gradually shifting to a formal and demonstrative manner. Moreover, the Goguryeo revival army gradually retreated to the south as it became more aggressive in its fight against Silla and its crackdown on them after learning that the revival movement was prolonged and connected with Silla in the Tang Dynasty. As they were headed for Silla after losing the Hanganghae Province and defeating the Battle of Horoha(호로하) along the Imjin River(임진강) basin, Goguryeo revival movement group's fighting against the Tang army in Goguryeo's Old Territory came to an end in four years.
The Anseung group settled in Geummajeo reshuffled the Goguryeo-style system of lanterns and reorganized it into a five-part system and established its status as a state. They also began diplomatic affairs by sending envoys to Japan. After the revival movement in Goguryeo's former Territory failed in 673, its group was not able to take the lead in Geummajeo due to the power of Anseung, which was already in place. Silla appointed Anseung as the King of Bodeok in 674, which means that his kingdom has been downgraded to Silla's vassal. But the names of the kingdom still seems to have been called Goguryeo, considering the names used externally.
Silla brought Anseung to Gyeongju(경주) in 683 and incorporated him as a member of the Jingol nobility, disbanding Geummajeo's Goguryeo Kingdom and absorbing it into the local control system of Silla named Bodeok Fotress(보덕성). There was a revolt in Bodeok Fortress, and the rebellion expanded in conjunction with the Baekje Epitaph. The Goguryeo Epitaph of Bodeok Fortress advanced to Gajam Fortress(가잠성), the region of Anseong at this moment, and resisted Silla, but failed. Baekjae Epitaph's resistant continued event after the breakup of the rebellion in Bodeok Fortress, We can know from the records that the local system for its Old Territory was establish and they were reorganized into the Nine Seodang Guard system after a year or two later. Given the scale of Baekjae Epitaph's resistant, the anti-Silla tendency seems to have been formed for a long time. The Silla government, which grasped the atmosphere of the Baekje Old Territory, rushed to dismantle the Goguryeo of Geummajeo in haste, and the reaction could be seen as the rebellion of Bodeok Fotress' s Goguryeo Epitaph combined with the Baekje Epitaph. As the rebellion of Bodeok Fotress's Goguryeo Epitaph was subdued by Silla, their traces disappeared into history.