Selkirkshire or the County of Selkirk is a historic county and registration county of Scotland. It borders Peeblesshire to the west, Midlothian to the north, Roxburghshire to the east, and Dumfriesshire to the south. It derives its name from its county town, the royal burgh of Selkirk. The county was historically also known as Ettrick Forest.