During their long stay in the Western countries King Magnus and his men had adopted some of the habits and fashions of clothing of those countries. They wore short jackets and kilts without breeches. On account of this the king was called Magnus Barefoot or Bareleg.
A short time after his return to Norway, King Magnus became involved in war with the Swedish king, Inge Steinkelson. Magnus insisted that the Gaut River and Lake Venern should be considered the boundary between the countries, so that the Swedish district of Dalsland would belong to Norway. This war lasted for two years, and was generally unsuccessful for King Magnus. In the spring of 1100 there was a battle at Foxerne (at the Gaut River, between Kongself and Wenersborg), in which the Norwegians were overwhelmed by numbers, driven to flight, and many of them killed by the pursuing Swedes. King Magnus was easily known, for he was a stout man, had a red cloak over him, and bright yellow hair that fell over his shoulders. Ogmund Skoptason, who was also a tall and handsome man, rode at the side of the king. He saved the king by putting on the king's cloak. He started off in a little different direction, and the Swedes, supposing him to be the king, rode after him, while the king proceeded to his ships. Ogmund escaped with great difficulty, but succeeded at last in reaching the ships. King Magnus then sailed down the river and proceeded north to Viken.
The next summer a meeting of the kings was agreed upon at Konghelle on the Gaut River. The Danish king, Erik Eiegod, desired to have an archbishopric established for the northern countries, and it was important to have the other kings with him to execute this plan. By his mediation the meeting of the three kings was arranged, and they soon came to an understanding. Each should possess the dominions his forefathers had held before him, and each should make good to his own men the loss and manslaughter suffered by them. King Inge agreed to give King Magnus his daughter Margaret in marriage. This agreement was proclaimed to the people, and thus, within a short hour, the greatest enemies were made the best of friends.
Shortly afterward Margaret, King Inge's daughter, came to Norway with an honorable retinue, and her wedding with King Magnus was celebrated with great festivities. The Norwegians liked their new queen, whom they considered as a pledge of the peace with Sweden, and they therefore called her _Fridkolla_, _i.e._, the peace-girl.