According to the Eric’s Chronicle, Birger Jarl wished to succeed Eric, but had to step aside for his son, who was of royal descent through his mother, King Eric’s sister. But Birger Jarl remained the all-powerful, although uncrowned, ruler till his death.

Many of the nobles were not satisfied with the election of Valdemar. They joined forces, gathering hired troops from Denmark and Germany. Birger met them at Hervadsbro and defeated them, capturing the leaders, who were beheaded. Among these were Philip, a son of Knut the Tall, and Knut Magnusson, with others of the Folkung family, which often was at war between themselves when great interests were at stake.

After this battle peace reigned under the powerful and sagacious rule of Birger. An assault upon Denmark by King Hakon of Norway and Birger jointly was planned, but a peace agreement took its place, in 1253. In the further complications between Norway and Denmark, Birger took no part. When later King Christopher of Denmark called upon his northern neighbors for help against revolts in his own country, these were ready to respond; but at the sudden death of King Christopher these plans were frustrated. In 1260 Birger bettered the already friendly relations with Denmark, by arranging the marriage between King Valdemar and the Danish princess, Sophia, whereupon he, himself a widower, married Mechtild, a queen-dowager of Denmark. In Finland, conditions were the same as of yore, pagan tribes and Russian invasions rendering everything unsafe and perilous. Birger renewed the trade agreement with Lubeck, in 1251, with added privileges to Lubeck, but with the stipulation that those of its citizens who settled in Sweden must become Swedish subjects. In 1261 the same privileges were extended to Hamburg. It was at this period that the Hanseatic League was formed between the commercial centres of North Germany. The relations between the league and the Scandinavian countries waxed quite intimate and, at times, menacing to the political independence of the latter. But Sweden derived many benefits through the contact with the reviving culture of Southern Europe, which was brought about through the Hanseatic League; the newly opened mining industry and the prosperity of Swedish commercial centres particularly owing much to this influence. Stockholm became the largest and most important of Swedish towns during the days of Birger, although he was not its founder. Also with England, Birger was carrying on peaceful proceedings; yet their purpose is not known. In 1237, the king of England had granted the merchants of the island of Gothland free trade privileges. Birger was a great and sound legislator, although it is not known with certainty how many of the judicial reforms accredited to him originated in these days. He made the law that sister should have equal share of inheritance with brother, and the laws of sanctity of home, Church, Thing and woman, which formed the kernel of a set of laws, later called Edsœre (Pledged oath), which every crowned king and his foremost men must pledge themselves to uphold. He tried to make away with the ordeal of walking on, or the handling of, iron as a legal testimony of guiltlessness. Further, he prohibited the custom of self-imposed thraldom.

The only act of Birger’s which has been condemned was his attempt to introduce feudalism. His second son, Magnus, was created a duke, and received, at Birger’s death, Sœdermanland, with the castle of Nykœping as a duchy. This gave rise to much strife and many conflicts within the new royal branch of the Folkungs, and endangered the unity of the kingdom. Birger, the last jarl of the realm, was the first real statesman of Sweden, whose stern intellect and integrity of character won for his country an honored position among its neighbors, and for himself the admiration of many generations to come. He died in 1266.

The first few years after Birger’s death were peaceful. The archbishop’s seat was removed to the present Upsala, where work was commenced on the magnificent cathedral. In 1271 the commercial privileges held by Lubeck and Hamburg were also granted to Riga.

Valdemar was a weak and frivolous man, and his licentiousness gave his brother Magnus the idea of pushing him aside, and later deprived him of the loyalty and respect of his people. The difficulties with his brothers ended in open conflict; Magnus and his younger brother Eric turned to Denmark and Germany, where they hired an army, King Eric Glipping of Denmark helping them with troops on promise of good securities. The brothers invaded West Gothland and defeated a Swedish army at Hofva, in 1275, while the king with his best troops remained inactive at Tiveden. Valdemar fled to Norway, bringing his son Eric with him. Venturing back into Vermland, he was captured and brought before Duke Magnus. Valdemar went so far as to abdicate his throne, but the meeting ended in an agreement according to which Magnus was to become king of Svealand and Valdemar to keep Gothaland. Eric was made a duke, but died in the same year. Magnus was crowned at Upsala in 1276.

King Valdemar did not long remain content with the new state of things. One month after Magnus’s coronation he arranged a meeting with him at Lœdœse, over which King Magnus Lagabœte of Norway presided, but without being able to effect an agreement between the brothers. Valdemar now turned to King Eric of Denmark, and won an ally in him because Magnus had neglected to fulfil his promises. Magnus gained a supporter in Duke Gerhard I. of Holstein, whose daughter Helvig he married in November, 1276.

With the year 1277 war commences between Sweden and Denmark. Magnus invades Halland and Scania, while Valdemar, with a Danish army, enters Smaland, burning the town of Vexio. With King Eric, Valdemar enters West Gothland, capturing Skara. At last the Danes are defeated at Ettak. Early in 1278 peace is made at Laholm, Magnus promising to pay his debt to Eric, leaving the castle of Lœdœse as security. Each promises not to shelter the rebels against the other. Valdemar lost his cause and had to give up Gothaland and his royal title, keeping only his inherited estates. On account of his scandalous living, the nobles insisted upon his imprisonment, and ten years after his abdication he was placed in custody at the castle of Nykœping. He survived all his brothers, dying in 1302. His son Eric was imprisoned at the castle of Stockholm, receiving good treatment like his father. When his cousin Birger was crowned, in 1302, he was set free, spending the rest of his life in Sweden as a private citizen. During Magnus Ericsson’s minority he was a member of the king’s council. When Magnus was sole occupant of the throne he took the title of “King of the Swedes and Goths,” which, occasionally used before, henceforward became the customary one.

A revolt against King Magnus took place shortly after the meeting at Laholm. Some of the nobles were dissatisfied with the favoritism shown foreigners, a complaint which was only too often justifiable, and forever repeated, in the course of centuries, against the Swedish monarchs. Count Gerhard of Holstein was imprisoned, and the Danish knight, Ingemar, killed. The king invited the rebels to him at Gællqvist, where he in an unexpected way made them prisoners, and had them beheaded, in August, 1280, confiscating their property. This incident is characteristic of the time, but there is no other authority for it than the Chronicle. The reign of Magnus was comparatively short, but a happy and glorious one. The relations with the island of Gothland were made closer and more intimate, although the proud independence of its inhabitants remained largely intact. They were to pay increased scat, but continued their government without royal officials. The Guts were of Swedish origin, and their island formed since the ninth century a part of Sweden, but their isolated position and great commercial activity made them almost independent. About the year 1000 they seek for themselves protection from the Swedish king, and after their baptism they turn to the bishop of Linkœping for spiritual guidance. Thanks to its position, halfway between Germany, Russia and Sweden, Gothland gives rise to the most important commercial centre of Northern Europe after Lubeck. The inhabitants of Visby were Germans, to a great extent, and their conflicts with the rural population were frequent. King Magnus appears as an arbitrator in such cases with an authority great enough to impose his conditions. In spite of the inimical relations between Denmark and Norway, Magnus held peace with both.

As a legislator Magnus was even more important than his father, shaping and reshaping laws which furthered the development of the country and wielding an influence upon its jurisdiction reaching down to the present day. At a meeting of nobles at Alnsnœ, in 1280, King Magnus gave solemn pledge to the so-called Edsœre-laws of his father, and made the nobility into a privileged class. All the men surrounding him and his brother Bengt (made duke of Finland), and on their estates, together with the trusted men in the service of a bishop, were freed from paying taxes to the king. The same privilege was extended “to all men who served with a horse, whosoever they serve.” The exemption from taxes did not include those due the church or community, but only those due the king. The horse service (ross = later rusttjenst) meant to provide for a cavalry force of iron-clad men for military service, according to the demands of the time. The nobles saw to it that this privilege was made permanent even after they had discontinued the horse service, and that others were added to it. A law prohibiting voldgæstning, the custom of travellers of taking by violence, or without compensation, food and comfort from the rural population, was also made at Alnsnœ, and won for King Magnus the rustic but beautiful surname of Ladulas (Barn-lock). “For he wished to place such locks on the peasant’s barn, that no one should dare enter but at the will of the owner,” wrote Olaus Petri, the historian and reformer. An official was placed in every country town to see to the traveller’s comfort, and to his payment for it. At a meeting in Skenninge, in 1285, a law about konungafrid (royal sanctity) was made in order to prevent strife among the nobles and to make away with the ancient evil of revenge for bloodshed. This period of royal sanctity, when between men of the most strained relations peace should reign, commenced a fortnight after the king’s arrival had been announced at the Thing and lasted until he had by letter informed it of his departure out of the province. The one who abused this sanctity, or only carried weapons, was exiled and his property confiscated. Secret societies among the nobles were prohibited.