 Roslin Castle is one of the places featuring in Sir Walter Scott's poem "Rosabelle".A ballad named "Roslin Castle" was written in the 18th century by Richard Hewitt of Cumberland, the lyrics and music of which are recorded in volume one of the Scots Musical Museum collection of Scottish songs.The castle was also used as a location for Ron Howard's film adaptation of Dan Brown's book, "The Da Vinci Code".