Ferniehirst Castle is an L-shaped construction on the east bank of the Jed Water, about a mile and a half south of Jedburgh, in the Scottish Borders area of Scotland, and in the former county of Roxburghshire. It is an ancient seat of the Clan Kerr, and after a period of institutional use it was restored for residential use by Peter Kerr, 12th Marquess of Lothian, in the late 20th century.