Lanarkshire was the most populous county in Scotland and, in earlier times, had considerably greater boundaries, including neighbouring Renfrewshire until 1402.[1] In modern times, it is bounded to the north by Stirlingshireand a detached portion of Dunbartonshire, to the northeast by Stirlingshire, West Lothian, to the east by Peeblesshire, to the southeast and south by Dumfriesshire, to the southwest by Dumfriesshire and Ayrshire and to the west by Ayrshire,Renfrewshire and Dunbartonshire.