Skip to the content
Historic Dunfermline

The Legend of St Margaret’s Cave

, by Historic Dunfermline. 1 minute read.

Joseph Noel Paton’s painting Queen Margaret and King Malcolm, 1887, under the title The Legend of St Margaret’s Cave

St Margaret’s Cave is one of the most mysterious places in Dunfermline. According to legend, Queen Margaret used it as a retreat where she could meditate and pray undisturbed. The story goes that a jealous courtier told King Malcolm that Queen Margaret was secretly leaving the royal house. His first thought was that she might be meeting a lover.
One day, the king pretended to go hunting but instead quietly returned and followed her to the cave. To his astonishment, he found her praying for him. Overcome with shame for his unfounded suspicions, he had the cave fitted out as a more comfortable refuge for her. Some say that stone benches were installed inside, along with small cavities in the walls to hold candles.
Today, it is almost impossible to experience the ambiance of the famous cave, as it lies buried beneath a car park behind the City Hotel in Dunfermline. However, in Margaret’s time, it would have been a peaceful and private sanctuary, far removed from the hustle and bustle of the royal residence and the medieval town to the south.

© 2025 Historic Dunfermline. All rights reserved. Please ask before reusing the words or photographs.

Keep reading