The First Swedish–Norwegian union was a personal union between the kingdoms of Sweden and Norway. The union was established in 1319, when the three-year-old Magnus Eriksson was elected King of Sweden and at the same time inherited the Norwegian throne from his maternal grandfather, King Haakon V. At the time, Sweden included Finland, while Norway encompassed its overseas colonies: Iceland, Greenland, the Faroe Islands and the northern isles of Orkney and Shetland. In 1332, Magnus also acquired Skåne from Denmark.

The dissolution of this union was a complex and gradual process. A formal decision to dissolve the union was made at the Varberg agreement of 1343, which arranged for the future succession of separate kings for Norway and Sweden. Despite this, the union persisted in some form until the late 14th century, as Magnus Eriksson continued to act as King of Norway alongside his son, Haakon, who became King of Norway in 1355. Haakon was also elected King of Sweden in 1361. In 1363–1364, a rebellion deposed Magnus and Haakon and elected Albrecht of Mecklenburg as King of Sweden, but they nevertheless retained control over Norway and parts of western Sweden. The union was formally broken when Haakon died in 1380.

The Swedish–Norwegian union set the stage for the creation of the Kalmar Union, which brought Sweden, Norway, and Denmark under a single crown. The union was established by Margaret, Haakon's widow and daughter of King Valdemar IV of Denmark, who successfully consolidated the three kingdoms under her rule in 1389.

Background A marriage took place between Duke Erik Magnusson, son of King Magnus Ladulås of Sweden and Duchess Ingeborg, daughter and heiress of King Haakon V of Norway. His death in 1319 gave the kingdom of Norway by right of inheritance to their three-year-old son Magnus. When he was also elected king of Sweden shortly afterwards in the same year, the first Swedish-Norwegian union came into being.

Establishment As the three-year-old king was too young to rule, a treaty was signed in 1319. Known as the Treaty of Oslo 1319 or The Treaty of Union in Oslo 1319, it regulated the union between Sweden and Norway during the guardianship of King Magnus Eriksson but lost its validity when Magnus came of age and took over the government himself.

The kingdom of Sweden-Norway would become the largest country in Europe at the time.

Under guardianship At first his mother Duchess Ingeborg had a predominant influence on the government. She was present at the signing of the Union Treaty and is mentioned in it in terms that could be interpreted as giving her certain powers in the Riksråd. After the accession of Magnus as king she was included in the Swedish national council. She had received Axvall Castle and a county as maintenance and held court at Varberg Castle, where her son was brought up. She thus had a geographical position of power and at Varberg Castle she surrounded herself with her late husband Eric's former aides, for example the Danish commander Knut Porse (who became her husband after the passing of Haakon Magnusson) and the van Kyren family from Holstein. Suspicion and contradictions quickly arose between Ingeborg and the others in the Riksdråd. Drots Mats Kettilmundsson was forced to resign and was replaced by Östergötland's lawman Knut Jonsson. At a council meeting in Skara in the summer of 1322, the nobles in the Riksråd promised each other that old disputes from the civil war would be forgotten and that no one would join forces with Ingeborg without the consent of the entire council.

In order to avoid Danish interference in Swedish politics, the National council tried to have good relations with the Danish king Erik Menved. Ingeborg and the circle around her instead had contact with Erik Menved's enemies in Denmark and made alliances with his enemies in Germany. In the summer of 1321, a treaty was concluded between the heir to the throne Magnus and Henry II of Mecklenburg. The treaty involved the marriage of Magnus's younger sister Euphemia of Sweden to Duke Albert II of Mecklenburg as well as the promise of mutual aid in the event of an attack from Denmark. In secret, they also agreed on a military attack against Scania. Plans were prepared in 1322 by Knut Porse, but they were not realized.

During the years 1323–1326, the council succeeded in redeeming Ingeborg's castles Axevall, Varberg and Hunehals and relieved her of her place in the council, which was led by Drott Knut Jonsson. The example was followed in 1323 by the Norwegians, who appointed Mr. Erling Vidkunsson as governor. In accordance with the Union Treaty, the union between the two kingdoms was subsequently reduced to a defense alliance. With the Republic of Novgorod, which the relations had long been tense, peace was concluded in Nöteborg in 1323.

After guardianship Magnus came of age in 1331 or 1332 and in 1335 he appointed his drots Håkan Mattsson as a marshal, mentioned as a marshal in connection with a will.

On 18 May 1335, King Magnus appointed Nils Abjörnsson as his drots.

Magnus was crowned in Stockholm on July 21, 1336.

The Scania purchase In 1332 Scania, Blekinge, Ven and Lister were sold to Magnus from Duke Johan of Holstein, after the local population expressed dissatisfaction with Duke Johan and stated they would rather be ruled by the Swedes. The Duke started negotiations with the Swedes and it was agreed that the Swedish king would redeem the pledge for 34,000 marks of silver (6 432 kilo). Sweden would later on buy southern Halland for 8 000 marks in 1341, finally reuniting the county after the Norwegians annexed northern Halland in 1306. Though Magnus bought Skåneland, it was not integrated into the Swedish half. Magnus Eriksson would thus be crowned king of Skåneland in 1332. The union with Skåneland was dissolved in 1360.

After the internal strife in Denmark, Valdemar Atterdag wanted to restore Denmark's former influence and therefore wanted to regain supremacy over Scania. For Magnus, the acquisition of Skåneland threatened to be a bigger bite than he could swallow. The sum of 34,000 marks was an unheard amount at the time, and in order to raise it, the king was forced to borrow money from the church and take loans from magnates in exchange for pledges. In 1326 the king had pledged Kalmar Castle and Kalmar County, all of Östergötland, Gästrikland, Fjärdhundraland, Dalarna, Närke and Värmland. Because the court could no longer receive income from the castle counties, a serious financial crisis emerged and lasted for several years. The king also levied extra taxes, including tolls at the Scanian fishing villages and tougher demands on the mining industry in the Bergslagen. At the beginning of the 1350s, Magnus Eriksson's city law was issued which, among other things, sought to limit trade to the cities as a means of imposing fees.

When the Danish king refused to recognise King Magnus's ownership of Skåneland, Magnus turned to the Pope, requesting confirmation of the purchase but received only evasive answers. Mainly as a result of his mother's lien on certain castles in Denmark, Magnus waged war with King Valdemar. Peace between them was only concluded in the autumn of 1343 in Varberg, when Valdemar formally renounced all claims to Scania, Blekinge and Halland.

Internal issues Norwegian internal issues In 1331, Magnus was declared to have come to age at the age of 15. This provoked resistance in Norway, where a statue stipulated that a king would come to age at the age of 20, causing resistance from Erling Vidkunsson and other Norwegian nobles. The nobles were also dissatisfied with the king, who had taken the national seal out of the country has not appoint a chancellor for Norway during his frequent absences abroad. Some nobles rebelled and conquered Tunsberghus. In 1333 they made peace when the king let a councilor take care of the royal seal and appointed Ivar Ogmundsson as royal seat.

On 21 Iuly 1336, Magnus was crowned king of both Norway and Sweden in Stockholm. This caused further resentment in Norway, where the nobles and magnates wanted a separate Norwegian coronation. A second rising by members of the high nobility of Norway ensued in 1338.

In 1339, an agreement was indeed reached with the dissatisfied Norwegians, but the dissatisfaction continued, and in 1343 Magnus' younger son Haakon VI Magnusson was elected king of Norway. Haakon was supposed to rule under his father's guardianship, but the actual rule was taken over by the Riksråd. The following year, 1344, Magnus' eldest son, Erik Magnusson, was elected heir to the throne in Sweden. He had thus been able to secure kingship for each of his sons.

Swedish internal issues The financial crisis in the kingdom, caused by loans and pledges, gave rise to an ever-widening gap between the king and the aristocracy. The king criticized his trustees for managing the finances so badly that there was no money left when he ascended to the throne. The kingdom's finances were also worsened by the growth of tax-exempt arrangements as it took over land that had previously paid taxes to the king.

In the 1340s, the king was forced to improve relations with the aristocracy in the parliament. In April 1346 he sent apologies around the country, stating he was sorry for the high taxes imposed during the acquisition of Skåneland, Magnus also sent a large donation to the Birgitta Birgersdotter to establish a monastery foundation in Vadstena.

Wars

Kexholm War

In 1321, Novgorodian troops attacked Swedish Viborg, the attack isn't well documented, except that it ended in failure for the Novgorodians and they were forced to retreat. In 1322, Yuri of Moscow arrived in Novgorod and ordered the Novgorodians there to repair several battering rams, while they were being repaired, the Swedes took the chance to attack Kexholm, but the expedition ended in failure.

After this failure, Yuri along with soldiers from Novgorod went to Viborg, and from the 12 August to 9 September they besieged it, the Novgorodians rammed the walls with six battering rams. After they had broken into the town, the Novgorodians killed and hanged many of the people inside, with others being led to the low country. After having laid siege to the fortress for a month, they assaulted it, but this ended in failure, and they were forced to retreat once again.

After the failed siege of Viborg, the Novgorodians were eager to make peace with Magnus, since new problems had sprung up at their southern border.

Any fighting in 1323 is unknown, but it is at this time that representatives from both Sweden and Novgorod sat down to discuss peace. The negotiations took place at the newly established Nöteborg. The Swedish representatives were Erik Turesson, Hemming Ödgislesson, Peter Jonsson, and the priest Vämund. The Novgorodian representatives were the Prince of Novgorod himself attending. A certain Ludwig von Groten also acted as a mediator. When the negotiations were finished, the first ever "eternal peace" had been signed between Sweden and Novgorod, and the border was defined for the first time in history, in the Treaty of Nöteborg.

Sten Bielkes´s war against Novgorod