Between the late tenth and early eleventh centuries, the land between the rivers
Forth and
Tweed came under Scottish control. The town of Berwick-upon-Tweed was made a
royal burgh by
David I (reigned 1124–1153), and it would appear that the
shire of Berwick, or Berwickshire, was also created during David's reign. The shire covered the town of Berwick plus a largely rural area to the north-west of it, and corresponded to the medieval
province of Merse. After the town of Berwick had finally been ceded to English control in 1482, the functions of the county town (principally holding the
sheriff court) were initially shared between Duns and
Lauder, until 1596 when
Greenlaw was declared the county town by
James VI. In 1661 the county town was moved to Duns, but in 1696 it was moved back to Greenlaw. : Built 1829 as County Hall.
Commissioners of Supply were established for each Scottish shire in 1667.
County Hall was built at Greenlaw in 1829 to serve as the courthouse and meeting place for the commissioners, replacing an earlier building on an adjoining site. The building was paid for by
William Purves-Hume-Campbell of Purves Hall, near Greenlaw, who was keen for Greenlaw to retain its position as county town. However, Greenlaw remained a very small town, and Duns was clearly the larger town by the nineteenth century. In 1853 an
act of Parliament, the '''''' (
16 & 17 Vict. c. 27) was passed allowing the courts and commissioners' meetings to be held at Duns as well as at Greenlaw. Another courthouse, known as
County Buildings, was subsequently built at 8 Newtown Street in Duns in 1856. ==County council==