Magnus Barefoot (or Barelegs) came to the throne of Norway in 1093.
Like his countrymen he enjoyed the conquest of other countries. In 1098 he drew up the first formal treaty with a Scots king, Edgar, confirming in writing that all the Western Isles and the peninsula of Kintyre belonged to Norway.
On a journey which had included plundering the Hebrides yet again, before taking over the Isle of Man as a base for his invasion of Wales, Magnus landed in Ireland in 1103, from where he made an unscheduled journey to Valhalla.
The treaty between Scotland and Norway survived until 1266.