A Parochial Board was established under the Poor Law (Scotland) Act 1845. Within the parish of Lasswade, police burghs were created at Bonnyrigg, 1865 (main part in the parish of Cockpen); Lasswade, 1881; and Loanhead, 1884. Police burghs were communities over a certain size who were entitled to police many of their own affairs, such as cleansing, street lighting and water supply as well as public order. Police burghs were run by elected commissioners or magistrates. In 1901, police burgh functions were taken over by town or burgh councils.