 Following Haakon Haakonarson's ill-fated invasion and the stalemate of the Battle of Largs the Hebrides and Mann and all rights that the Norwegian crown "had of old therein" were yielded to the Kingdom of Scotland as a result of the 1266 Treaty of Perth.In 1468 Orkney was pledged by Christian I, in his capacity as king of Norway, as security against the payment of the dowry of his daughter Margaret, betrothed to James III of Scotland.As the money was never paid, the connection with the crown of Scotland has become perpetual.