Anglo-Scottish border English king, Edgar the Peaceful, at his council in Chester. After Kenneth had reportedly done homage, Edgar rewarded Kenneth by granting him Lothian. Despite this transaction, the control of Lothian was not finally settled and the region was taken by the Scots at the Battle of Carham in 1018 and the River Tweed became the "de facto" Anglo-Scottish border. The Solway–Tweed line was legally established in 1237 by the Treaty of York between England and Scotland. It remains the border today, with the exception of the Debatable Lands, north of Carlisle, and a small area around Berwick-upon-Tweed, which was taken
Sport in Scotland closely related to standard football. Five-a-side (not to be confused with fives) is popular in Scotland, with many casual leagues. For hurling and camogie, please see under Gaelic Athletic Association. Cricket has a much lower profile in Scotland than it has south of the border in England. Scotland is not one of the twelve leading cricketing nations which play Test matches, but the Scottish national team is now allowed to play full One Day Internationals, and takes part in the Cricket World Cup, in which Scotland reached the final tournament in 2007. Scotland has a well established recreational cricket structure.