Sanquhar Castle is located close to the village of Sanquhar, Dumfires and Galloway (Scottish Gaelic: Seanchair, Dùn Phrìs is Gall-Ghaidhealaibh) in south west Scotland. The castle, now in ruins, was built by the Crichton family in the 13th century. To the west of the castle is the River Nith (Scottish Gaelic: Abhainn Nid) and to the north is a burn. The remainder of the boundary of the fortress is protected by a deep ditch. During its existence it has had some famous visitors including Robert the Bruce, William Wallace, Edward I, Mary Queen of Scots, and James VI. A number of construction periods have been identified since the castle was originally built. The building began to fall into ruin from the mid 17th century. However, from 1895 to 1900 some reconstruction was started when it was purchased by John Crichton-Stuart, 3rd Marquess of Bute. The work ended upon his death in 1900.