Inverness is a city in the Scottish Highlands. It is the administrative centre for the Highland council area, and is regarded as the capital of the Highlands of Scotland. Inverness lies near two important battle sites: the 11th-century battle of Blàr nam Fèinne against Norway which took place on The Aird and the 18th-century Battle of Culloden which took place on Culloden Moor. It is the northernmost city in the United Kingdom and lies within the Great Glen at its north-eastern extremity where the River Ness enters the Moray Firth. At the latest, a settlement was established by the 6th century with the first royal charter being granted by Dabíd mac Maíl Choluim in the 12th century. The Gaelic king Mac Bethad Mac Findláich whose 11th Century murder of King Duncan was immortalised in Shakespeare's play Macbeth, held a castle within the city where he ruled as Mormaer of Moray and Ross.