kingdom was split into two. The Western Isles and Man continued as to be called the "Kingdom of Man and the Isles", but the Inner Hebrides came under the influence of Somerled, a Gaelic speaker, who was styled 'King of the Hebrides'. His kingdom was to develop latterly into the Lordship of the Isles. In eastern Aberdeenshire, the Danes invaded at least as far north as the area near Cruden Bay. The Jarls of Orkney continued to rule much of northern Scotland until 1196, when Harald Maddadsson agreed to pay tribute to William the Lion, King of Scots, for his territories on the mainland. The end of the Viking Age proper in Scotland is generally considered to be in . In 1263, King Haakon IV of Norway, in retaliation for a Scots expedition to Skye, arrived on the west coast with a fleet from Norway and Orkney. His fleet linked up with those of King Magnus of Man and King Dougal of the Hebrides. After peace talks failed, his forces met with the Scots at Largs, in Ayrshire. The battle proved indecisive, but it did ensure that the Norse were not able to mount a further attack that year. Haakon died overwintering in Orkney, and by , his son Magnus the Law-Mender ceded the Kingdom of Man and the Isles, with all territories on mainland Scotland to Alexander III, through the Treaty of Perth. Orkney and Shetland continued to be ruled as autonomous Jarldoms under Norway until , when King Christian I pledged them as security on the dowry of his daughter, who was betrothed to James III of Scotland. Although attempts were made during the 17th and 18th centuries to redeem Shetland, without success, and Charles II ratifying the pawning in the 1669 Act for annexation of Orkney and Shetland to the Crown, explicitly exempting them from any "dissolution of His Majesty's lands", they are currently considered as being officially part of the United Kingdom. Wales Incursions in Wales were decisively reversed at the Battle of Buttington in Powys, in , when a combined Welsh and Mercian army under Æthelred, Lord of the Mercians, defeated a Danish band. Wales was not colonised by the Vikings as heavily as eastern England. The Vikings did, however, settle in the south around St. David's, Haverfordwest, and Gower, among other places. Place names such as Skokholm, Skomer, and Swansea remain as evidence of