In the 10th century the Alban kings, having repulsed the Vikings, repeatedly attacked the Northumbrian strongholds south of the Firth of Clyde. All these attacks ended in failure. During the reign (1005-34) of Malcolm II Mackenneth, the Northumbrians were decisively defeated in the Battle of Carham (1018). With this event and as a result of the inheritance of the crown of Strathclyde by Malcolm’s grandson and successor, Duncan I, the Scottish domains, thereafter known as Scotland, embraced all the territory north of Solway Firth and the Tweed River.