Many regions of Scotland, including Galloway and Moray, periodically had kings or subkings, similar to those in Ireland during the Middle Ages.
The ex-King of Dublin and Man, Echmarcach mac Ragnaill, had the title Rex Innarenn (possibly "King of the Rhinns") attributed to him on his death in 1065.
The western sections of Galloway had been firmly aligned with the Isle of Man, and Norse and Gaelic-Norse settlement names from the 10th and 11th centuries are spread all along the coastal lands of south-western "Scotland" and north-western "England".
In the late 11th century, the Norwegian King Magnus III Berrføtt ("Barefoot") led a campaign of subjugation in the Irish Sea area.
On his second campaign, Magnus went to Man, and with a huge fleet attacked Dublin and attempted to force the submission of Muircertach mac Toirrdelbach, the Uí Briain King of Munster.
Lochlann married Helen, the daughter of Richard de Moreville, Constable of Scotland, and inherited his father-in-law's title.
Galloway's period as an independent political entity eventually came to an end with John de Balliol delegated as Lord.
In 1369, Archibald the Grim had been appointed Lord of Galloway by David II of Scotland, "becaus he tuke git trawell to purge the cuntrey of Englis blude".