|Kingdom of Scotland|
|Commanders and leaders|
|Around 12,000 light armed soldiers, no cavalry, around 120 leidang ships||Around 5,000 heavy armed soldiers and 800 heavy cavalry|
: Magnus III of Orkney did not participate in the war; he remained nominal head of the forces who participated in the war from the Earldom of Orkney.: Haakon IV of Norway died during the war, according to some historians, even though he resided in Orkney, the war was still ongoing.
The Scottish–Norwegian War was a conflict from 1262 to 1266. The conflict arose because of disagreement over the ownership of the Hebrides. The war contained only skirmishes and feuds between the kings. The only major battle was the indecisive Battle of Largs.
Both the Hebrides and the Isle of Man had come under Norwegian influence dating to the reign of King Harald Fairhair of Norway. Norwegian control had been formalised in 1098, when Edgar, King of Scotland signed the islands over to King Magnus III of Norway, setting the boundary between Scots and Norwegian claims in the west. The Scottish acceptance came after the Norwegian king had imposed more direct royal control over the Hebrides as well as Orkney and the Isle of Man in a swift campaign earlier the same year, directed against the local Norse-Gaelic leaders of the various islands. In Norwegian terms, the islands were the Suðreyjar, meaning Southern Isles.
The Norwegian suzerainty over the Hebrides had been contested since the 1240s, when the Scottish king, Alexander II, began asking King Haakon IV of Norway if he could purchase the islands from him. For almost a decade these attempts were unsuccessful, and the negotiations ceased for thirteen years after Alexander II died. When his son Alexander III came to power in 1262, by obtaining majority support among the clansmen, he sent Haakon a final request saying that if Haakon did not sell them the Islands they would take them by force.
Haakon responded to this request by gathering a fleet of over 120 leidang warships and setting out in July 1263 to defend the Isles. Haakon stopped at the Isle of Arran where negotiations were started. Knowing Haakon had to win a decisive victory before the winter, Alexander III stalled during the negotiations until the autumn storms. In October 1263, several of King Haakon's ships got stranded at Largs in stormy weather. A rescue party was sent ashore to help salvage the ships, where the Scottish forces launched a surprise attack, and a minor skirmish followed. The battle ended indecisively. The following morning King Haakon’s forces sailed back to Orkney for the winter, where he died in December. Haakon's successor, King Magnus VI of Norway, had problems at home and lacked the funding to launch a new expedition.
Although the war was not really decided while Haakon was king, he was a major player in the events leading up to the conflict. Alexander III captured the Hebrides in 1264, and then made another formal claim to the Islands which were bought from Norway for 4,000 marks, and 100 every year after under the terms of Treaty of Perth, by which the Scots at the same time recognised Norwegian rule over Shetland and Orkney.