The Sheriff of Selkirk was historically a royal official responsible for enforcing justice in Selkirk, Scotland. Prior to 1748 most sheriffdoms were held on a hereditary basis. From that date, following the Jacobite uprising of 1745, the hereditary sheriffs were replaced by salaried sheriff-deputes, qualified advocates who were members of the Scottish Bar.
Following mergers of the Scottish sheriffdoms in 1868 the position became the Sheriff of Roxburgh and Selkirk.