Hawthornden Castle is located on the River North Esk in Midlothian, Scotland. The castle lies a mile to the east of Roslin at grid reference NT287637, and is just downstream from Roslin Castle. Hawthornden comprises a 15th-century ruin, with a 17th-century L-plan house attached. The house has been restored and now serves as a writer's retreat. Man-made caves in the rock beneath the castle have been in use for much longer than the castle itself.