However, the Convention of Moss, signed at the end of the war in August, preserved many of the independence movement's achievements: Norway remained mostly autonomous in a personal union with Sweden, and was permitted to retain its new constitution with only slight modifications.
[5] These terms were formalized and signed at the Treaty of Kiel on 14 January, in which Denmark negotiated to maintain sovereignty over the Norwegian possessions of Greenland, the Faroe Islands, and Iceland.
Secret correspondence from the British government in the preceding days had put diplomatic pressure on the negotiating parties to reach an agreement in order to avoid a full-scale invasion of Denmark.
Bernadotte sent a letter to the governments of Prussia, Austria, and Great Britain thanking them for their support, acknowledging the role of Russia in negotiating the peace, and envisaging greater stability in the Nordic region.
On 10 February Christian Frederick invited prominent Norwegians to a meeting to be held at his friend Carsten Anker's estate in Eidsvoll to discuss the situation.
But at the emotional session in Eidsvoll on 16 February, his advisors convinced him that Norway's claim to independence should rather be based on the principle of self-determination and that he should act as a regent for the time being.
All congregations met on 25 February to swear loyalty to the cause of Norwegian independence and to elect delegates to a constitutional assembly to commence at Eidsvoll on 10 April.
Christian Frederick sent letters through his personal network to governments throughout Europe, assuring them that he was not leading a Danish conspiracy to reverse the terms of the treaty of Kiel, but rather his efforts reflected the Norwegian will for self-determination.
The Count of Wedel-Jarlsberg, the most prominent member of the Norwegian nobility, arrived in Norway on 3 March and confronted the regent, accusing him of playing a dangerous game.
On 9 March the Swedish mission to Copenhagen demanded that Christian Frederick be disinherited from succession to the Danish throne and that European powers should go to war with Denmark unless he disassociated himself from the Norwegian independence movement.
In several letters to Count Hans Henrik von Essen, the commander of the Swedish military forces at Norway's borders, Bernadotte referred to Christian Frederick as a rebel who had probably been misled by the Danish nobility.
On 31 March Christian Frederick arrested officers of the naval vessels stationed in Norway as they were preparing to follow orders to bring the ships to Denmark.
Although the European powers refused to acknowledge the Norwegian independence movement, there were signs by early April that they were not inclined to support Sweden in an all-out confrontation on the matter.
By 20 April the principle of the people's right to self-determination articulated by Christian Magnus Falsen and Gunder Adler had been established as foundational for the framing of the constitution.
On the next day, it was decided that foreign citizens would be eligible after ten years of residency and that the right to vote would be extended to men who were either farmers possessing their own land, civil servants, or urban property owners.
The assembly also passed the so-called "farmer's paragraph" stipulating that two-thirds of the Storting had to be elected from rural districts, and one-third from urban areas.
On 11 May the assembly overwhelmingly passed universal conscription, over the objections of the financial and administrative elite, who threatened mass emigration if their sons were forced into military service.
There was continuing concern about the international climate, and on 24 May the government decided to send two of the delegates from the constitutional assembly to join Carsten Anker in the UK to plead Norway's case.
On 31 May general major Johannes Klingenberg Sejersted proposed to take a stand against invading Swedish forces at the river Glomma, but some maintained that the Swedes should be stopped at the border.
Morier offered to bring the Norwegian emissaries Niels Aall and Wilhelm Christie to Britain onboard his ship, but ended up failing to follow through on his promise.
On 26 June emissaries from Russia, Prussia, Austria, and the United Kingdom arrived in Vänersborg in Sweden to convince Christian Frederick to comply with the provisions of the treaty of Kiel.
Meeting with the Norwegian council of state the following day, the Russian emissary Orlow put the choice to those present: Norway could subject itself to the Swedish crown or face war with the rest of Europe.
That would be to put the world on its head.In the course of the negotiations, Christian Frederick offered to relinquish the throne and return to Denmark, provided the Norwegians had a say in their future through an extraordinary session in the Storting.
Christian Frederick succeeded in excluding from the text any indication that Norway had recognized the Treaty of Kiel, and Sweden accepted that it was not to be considered a premise of the future union between the two states.
Understanding the advantage of avoiding a costly war, and of letting Norway enter into a union voluntarily instead of being annexed as a conquered territory, something that, historically, the Swedes had never managed to do, Bernadotte offered favourable peace terms.
He would then have to transfer his powers to the elected representatives of the people, who would negotiate the terms of the union with Sweden, and finally relinquish all claims to the Norwegian throne and leave the country.
Christian Frederick confirmed his willingness to abdicate the throne for "reasons of health," leaving his authority with the state council as agreed in a secret protocol at Moss.
The Swedish general in the occupied border regions of Norway, Magnus Fredrik Ferdinand Björnstjerna, threatened to resume hostilities if the Norwegians would not abide by the armistice agreement and willingly accept the union with Sweden.
On 20 October, with one day to spare before the cease-fire expired, the Norwegian parliament voted 72 to 5 to join Sweden in a personal union, but a motion to acknowledge Charles XIII as king of Norway failed to pass.
On 4 November the Storting adopted the constitutional amendments that were required to allow for the union, and unanimously elected Charles XIII as king of Norway, rather than acknowledging him as such.