Drumlanrig Castle is a Scottish castle in the Dumfries and Galloway district of Scotland and is a UK-listed building. The Duke of Buccleuch owns it.
The building, built between 1679 and 1689 in pink sandstone, is typical of late 17th century Renaissance architecture. It was built on the site of a former Douglas fortress overlooking Nith Valley.
The present castle has 120 rooms, 17 turrets, and four towers. It houses one of the two original versions of the painting The Madonna of the Spindles by Leonardo da Vinci and his workshop, stolen in 2003 but recovered and returned in 2007.