The Advocates Library, founded in 1682, is the law library of the Faculty of Advocates, in Edinburgh. It served as the national deposit library of Scotland until 1925, at which time through an Act of Parliament the National Library of Scotland was created. All the non-legal collections were given to the National Library. Today, it alone of the Scottish libraries still holds the privilege of receiving a copy of every law book entered at Stationers' Hall.
The library forms part of the complex that includes Parliament House, located on the Royal Mile.
More information on the Wikipedia page