He walked in with his pipes playing. People followed the sound from above, tracking his progress through the tunnels beneath Edinburgh’s streets. Then — somewhere in the dark beneath the Royal Mile — the music stopped. The piper never came back up.

It is one of the oldest ghost stories in Scotland — and one of the most enduring. The legend of the Phantom Piper is tied to Edinburgh Castle itself, and it has never quite gone away.
The Mission Nobody Volunteered For
Sometime in the 17th century, workers discovered a network of tunnels running from Edinburgh Castle down beneath the Old Town. No one knew how far they extended or where they led.
Someone had to go in and find out. The solution was a young piper — a boy, by most accounts. He would walk through the tunnels playing his bagpipes. The sound would carry through the earth, letting those on the surface track his progress from above.
It seemed like a reasonable plan. It wasn’t.
The Sound That Faded Beneath the Royal Mile
The piper started playing and began to walk. On the surface, people pressed their ears to the ground and followed along the Royal Mile, listening to the faint drone of the pipes moving beneath them.
The music moved steadily down the hill. Past the castle walls. Under the buildings and closes. Then — somewhere in the section near what is now the Tron Kirk — it stopped.
No sound of struggle. No cry. Just silence. People waited at the surface. The piper never emerged from either end of the tunnel. Nobody went in after him. He was never found.
The City Built Over Its Own Secrets
Edinburgh is a city that has buried much of itself. As the medieval town grew and expanded upward, older streets were simply built over. Cellars became foundations. Narrow closes were sealed off and forgotten.
Mary King’s Close — now a popular underground attraction — is one example. Entire floors of a 17th-century street survive beneath the Royal Mile, frozen in time. You can walk through it today and see the original rooms, hearths, and doorways of people who lived there four centuries ago.
The tunnels the piper entered were something older and less mapped. To this day, not all of them have been fully explored. If you want to understand Edinburgh’s hidden layers, the secret closes of the Royal Mile are a good place to start.
The Drummer Boy Who Warned of Invasion
The piper is not Edinburgh Castle’s only ghost. The castle has another well-known apparition — a headless drummer boy, said to appear whenever the castle faces danger.
He was first recorded in 1650, when his drumbeat was reportedly heard before Oliver Cromwell’s forces besieged the city. Soldiers described rhythmic drumming with no visible source. When they searched, they found nothing.
The drummer has been reported several times since — most recently, according to castle records, during periods of significant construction, when workers disturb the older parts of the building.
Enjoying this? 43,000+ Scotland lovers get stories like this every week. Subscribe free →
What Visitors Experience at Edinburgh Castle Today
Edinburgh Castle draws over two million visitors every year. Most come for the Crown Jewels, the Stone of Destiny, and the One O’Clock Gun. But some notice something else — cold spots near the old tunnels, an unease in the darker corridors, the feeling of being watched in the oldest sections of the complex.
In 2001, researchers from Coventry University ran a large-scale paranormal investigation across Edinburgh, including the castle. Participants who knew nothing of the ghost stories reported significantly more unexplained experiences there than at the control locations — including cold spots, sounds with no source, and sensations of unseen presence.
Edinburgh Castle has also become the starting point for ghost tours across the Old Town. For a broader look at Scotland’s most atmospheric haunted places, the guide to Scotland’s most haunted castles covers everything from Glamis to Crathes.
Why the Legend Has Never Been Forgotten
Ghost stories survive when they touch something real. The Phantom Piper works because it is grounded in historical practise — using sound to map underground spaces — and because the tunnels beneath Edinburgh genuinely exist.
You can stand on the Royal Mile today and know that beneath you, several buried layers of the city’s past are still there. The piper walked through those layers and did not return.
That is a story with no comfortable ending. And those are the stories that last.
Frequently Asked Questions About the Phantom Piper
What is the Phantom Piper legend at Edinburgh Castle?
A young piper was sent into tunnels beneath Edinburgh Castle in the 17th century to explore their extent, playing his bagpipes as he went so those above could track him. The music stopped mid-route and the piper was never seen again. His ghost is said to still play beneath the Royal Mile.
Can you visit the tunnels beneath Edinburgh Castle?
The tunnels themselves are not open to the public. However, nearby Mary King’s Close offers guided tours through a preserved underground 17th-century street — one of the best ways to experience Edinburgh’s buried history in person.
Is Edinburgh Castle genuinely haunted?
Edinburgh Castle is one of Scotland’s most investigated paranormal locations. A 2001 study by Coventry University found that participants reported significantly more unusual experiences at the castle than at control sites — including cold spots and unexplained sounds.
When is the best time to visit Edinburgh Castle?
Spring and early summer (April to June) offer the best balance of good weather and smaller crowds. The castle is open year-round. Arriving early on a midweek morning gives you the quietest, most atmospheric experience of the older parts of the building.
If you are planning a trip to Scotland and want help building your itinerary, the Scotland travel guide for US visitors covers everything from when to go to where to stay.
Some places hold their stories close. Edinburgh Castle is one of them. Whether you believe in the supernatural or not, there is something about standing on those ancient battlements and knowing that beneath you, centuries of history — and perhaps a young piper’s last melody — are still there, waiting in the dark.
Join 43,000+ Scotland Lovers
Every week, get Scotland’s hidden gems, clan histories, and Highland travel inspiration — straight to your inbox.
Subscribe free — enter your email:
Already subscribed? Download your free Scotland guide (PDF)
📲 Know someone who’d love this? Share on WhatsApp →
Love more? Join 65,000 Ireland lovers → · Join 29,000+ Italy lovers → · Join 7,000 France lovers →
Free forever · One email per week · Unsubscribe anytime
Secure Your Dream Scottish Experience Before It’s Gone!
Planning a trip to Scotland? Don’t let sold-out tours or packed attractions dampen your adventure. Iconic experiences like exploring Edinburgh Castle, cruising along Loch Ness, or wandering through the mystical Isle of Skye often fill up fast—especially during peak travel seasons.

Booking in advance guarantees your place and ensures you can fully immerse yourself in the rich culture and breathtaking scenery without stress or disappointment. You’ll also free up time to explore Scotland's hidden gems and savour those authentic moments that make your trip truly special.
Make the most of your journey—start planning today and secure those must-do experiences before they’re gone!
***************************************************
DISCLAIMER Last updated May 29, 2023
WEBSITE DISCLAIMER
The information provided by Love to Visit LLC ('we', 'us', or 'our') on https:/loveotvisitscotland.com (the 'Site') is for general informational purposes only. All information on the Site is provided in good faith, however we make no representation or warranty of any kind, express or implied, regarding the accuracy, adequacy, validity, reliability, availability, or completeness of any information on the Site.
UNDER NO CIRCUMSTANCE SHALL WE HAVE ANY LIABILITY TO YOU FOR ANY LOSS OR DAMAGE OF ANY KIND INCURRED AS A RESULT OF THE USE OF THE SITE OR RELIANCE ON ANY INFORMATION PROVIDED ON THE SITE. YOUR USE OF THE SITE AND YOUR RELIANCE ON ANY INFORMATION ON THE SITE IS SOLELY AT YOUR OWN RISK.
EXTERNAL LINKS DISCLAIMER
The Site may contain (or you may be sent through the Site) links to other websites or content belonging to or originating from third parties or links to websites and features in banners or other advertising. Such external links are not investigated, monitored, or checked for accuracy, adequacy, validity, reliability, availability, or completeness by us.
WE DO NOT WARRANT, ENDORSE, GUARANTEE, OR ASSUME RESPONSIBILITY FOR THE ACCURACY OR RELIABILITY OF ANY INFORMATION OFFERED BY THIRD-PARTY WEBSITES LINKED THROUGH THE SITE OR ANY WEBSITE OR FEATURE LINKED IN ANY BANNER OR OTHER ADVERTISING. WE WILL NOT BE A PARTY TO OR IN ANY WAY BE RESPONSIBLE FOR MONITORING ANY TRANSACTION BETWEEN YOU AND THIRD-PARTY PROVIDERS OF PRODUCTS OR SERVICES.
AFFILIATES DISCLAIMER The Site may contain links to affiliate websites, and we receive an affiliate commission for any purchases made by you on the affiliate website using such links. Our affiliates include the following:
- Viator
We are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn advertising fees by linking to Amazon.com and affiliated websites.
