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
England–Wales border England and Wales therefore passes along Monmouthshire's eastern boundaries with Herefordshire and Gloucestershire, essentially along the River Monnow and River Wye. The first legislation applying solely to Wales since the 16th century was passed in 1881. Subsequently, the border between England and Wales has taken on increasing legal and political significance. In 1964 a separate department of state was established for Wales – the Welsh Office – which assumed an increasing range of administrative responsibilities from Whitehall. By 1992, the Welsh Office oversaw housing, local government, roads, historic buildings, health, education, economic development, agriculture, fisheries and urban regeneration, although the