In February 1858, a police nightwatchman named John Gray died in Edinburgh and was buried in Greyfriars Kirkyard, the old graveyard on the southern edge of the city’s Old Town. He left behind a wife, a son and a small terrier called Bobby.
According to the story that made him famous, Bobby would not leave. For the next 14 years the little dog stayed by his master’s grave, fed by local people and sheltered by the neighbourhood, until he died in January 1872. Edinburgh paid for his licence, gave him a collar and, after his death, put up a bronze statue of him across the street from the kirkyard gate.
Greyfriars Bobby is one of the most famous dogs in history, a Scottish cousin of Japan’s Hachikō. He is also one of the most argued about. Historians have been questioning his story since the 1880s, and some of them think the real Bobby was not quite the dog in the legend.
At a glance
- Who
- Bobby, a small Scottish terrier
- Where
- Greyfriars Kirkyard, Edinburgh
- When
- 1858–1872
- The legend
- 14 years beside his master’s grave
- Still debated
- Owner, breed and how many Bobbys
The Nightwatchman and His Dog
The best-known version of the story begins with John Gray. He was a gardener who came to Edinburgh in 1850 with his wife Jess and their son, also called John. To avoid working in a workhouse, he joined the Edinburgh City Police as a nightwatchman.
Policemen at the time were obliged to have watchdogs with them, and Gray looked after a small terrier named Bobby. The dog followed him as he walked his rounds through the Old Town at night. In popular culture Gray later became known as “Auld Jock”, the name that was given to him in books and films about the dog.

Gray reportedly died of tuberculosis on 15 February 1858. He was buried in Greyfriars Kirkyard, the graveyard around Greyfriars Kirk, where burials had been taking place since the late 16th century. His grave was originally unmarked. Today a modern stone stands on the eastern path, about 30 metres north of the entrance.
Fourteen Years by the Grave
After the funeral, Bobby is said to have taken up his post. He became known around the kirkyard and the streets nearby, spending the rest of his life sitting on his master’s grave, and the people around Greyfriars made sure he was fed.
One of the people closely linked to the dog was John Traill, who ran a coffee house near the kirkyard. Traill later claimed that John Gray had been a farmer who regularly visited his coffee house at the one o’clock gun. That detail has caused trouble for historians, because Traill did not own the coffee house until four years after Gray died. Still, Traill and his family clearly knew Bobby: a photograph from 1868 shows them posing with the dog.
Over the years Bobby became something of a local celebrity. Visitors came to see the faithful terrier in the graveyard, and the story spread well beyond Edinburgh.
A Collar From the Lord Provost
In 1867 Bobby’s story reached the very top of the city. The Lord Provost of Edinburgh, Sir William Chambers, was also a director of the Scottish Society for Prevention of Cruelty to Animals. He paid for Bobby’s licence himself and gave the dog a collar.

That collar survived. It is now kept in the Museum of Edinburgh, one of the few physical objects that connect the legend to a real animal. For a stray-looking terrier living in a graveyard, a licence paid for by the head of the city council was an extraordinary mark of public affection.
The Death of Bobby
Bobby died on 14 January 1872. Professor Thomas Walley of the Edinburgh Veterinary College carried out a necropsy and concluded that the dog had died of cancer of the jaw.
He was buried just inside the gate of Greyfriars Kirkyard, not far from John Gray’s grave. Even that has been questioned: because every part of the kirkyard is consecrated ground, some believe he was in fact buried under a tree outside the gates, to the right of the present main entrance.
A year later the English philanthropist Lady Burdett-Coutts, of the Coutts banking family, was charmed by the story. She paid for a drinking fountain topped with a statue of Bobby, made by the sculptor William Brodie. It was placed at the junction of George IV Bridge and Candlemaker Row, directly opposite the entrance to the churchyard he is said to have guarded.
Was the Story True?
The doubts are almost as old as the legend. In 1889, The Scotsman newspaper published two letters on the same day, 8 February, from people who both claimed close links to Greyfriars Kirk and both claimed to have known the dog personally. One defended the story. The other disputed it.
In 1934 the debate came round again. In a Scotsman article titled “Greyfriars Bobby: A Dog’s Devotion”, Councillor Wilson McLaren described his own conversation in 1871 with Mr Traill of Traill’s Coffee House, about the dog McLaren himself was then feeding. He wrote to reassure readers that the story was genuine.

A common point of argument is that there were two men named John Gray who might have owned Bobby: one a nightwatchman, the other a farmer. In McLaren’s account, Traill had spoken in 1871 about John Gray the farmer. The novelist Eleanor Atkinson, whose 1912 book made the story famous around the world, turned Gray into a shepherd. Modern writers have tried to untangle the versions in books such as Forbes Macgregor’s Greyfriars Bobby: The Real Story at Last and Richard Brassey’s Greyfriars Bobby: The Most Famous Dog in Scotland.
Sixty Graveyard Dogs and a Possible Replacement
The sharpest challenge came from the historian Jan Bondeson in his book Greyfriars Bobby: The Most Faithful Dog in the World. Bondeson argues that the fundamental claims about the dog and its loyalty are untrue.
His argument starts with a surprising fact: in 19th-century Europe there were more than 60 documented accounts of graveyard or cemetery dogs. They were stray dogs that visitors and caretakers fed until the animals made the graveyards their home. People began to believe the dogs were waiting by a particular grave, and so the dogs were looked after even more. Bondeson suggests that Bobby was one of these dogs, and that after an article about him appeared in The Scotsman, visitor numbers to the graveyard rose, which brought a commercial benefit to the local area.
He goes further. Bondeson speculates that the original Bobby died around 1867 and was replaced by a younger dog, which would explain the terrier’s remarkable 14-year vigil. It cannot be proven either way. Bobby’s modern headstone gives his age at death as 16 years, a long life for a dog that spent its winters in an open graveyard.
Even Bobby’s breed is now in question. He is usually described as a Skye Terrier. In his 2022 book on the Dandie Dinmont Terrier, Mike Macbeth, president of the breed’s club in Canada, argued that Bobby was more likely a Dandie Dinmont. That breed was extremely popular in Scotland at the time, with about 60 breeders around Edinburgh, while Skye Terriers were mostly found on the Isle of Skye.
The Statue, the Pub and the Headstone
Whatever the truth, Bobby’s place in Edinburgh is secure. Brodie’s statue on the Greyfriars Bobby Fountain is a listed monument and the smallest listed structure in the city. Behind it, on the ground floor of the houses on Candlemaker Row, is a pub called Greyfriars Bobby’s Bar.
Inside the kirkyard gate is Bobby’s own headstone, put up by The Dog Aid Society of Scotland and unveiled by the Duke of Gloucester on 13 May 1981. Its inscription reads: “Greyfriars Bobby – Died 14 January 1872 – Aged 16 years – Let his loyalty and devotion be a lesson to us all”. In 2021, to mark 150 years since Bobby’s death, a new monument was placed close to the east wall of the kirk.

The kirkyard itself is worth the visit. It is protected as a category A listed site and holds some of Scotland’s finest early 17th-century wall monuments. The National Covenant was signed in Greyfriars Kirk in 1638, and two iron cages called mortsafes still stand there, built to protect bodies from the grave robbers who once supplied Edinburgh’s medical school with corpses. The city is just as famous for its year-end party, Edinburgh’s Hogmanay, and for its summer arts festival.
A Loyal Dog on Page and Screen
Bobby’s fame grew far beyond the city through books and films. Henry T. Hutton published The True Story of Greyfriars Bobby in Edinburgh in 1902. Eleanor Atkinson’s 1912 novel Greyfriars Bobby added new details and made John Gray a shepherd known as Auld Jock. Walt Disney’s 1961 film Greyfriars Bobby: The True Story of a Dog was based on her book and cast a Skye Terrier in the title role. A 2005 film, The Adventures of Greyfriars Bobby, cast a West Highland Terrier instead, which upset many fans.
He has turned up in stranger places too: a British Rail locomotive named after him in 1981, a 2019 Christmas stage play in Edinburgh, a pop music video and even a tribute in a video game made by an Edinburgh studio. Like the faithful bear of our story about Wojtek, the soldier bear, Bobby has become a national symbol that people defend with real emotion.
Perhaps the original Bobby really did spend 14 years by a grave. Perhaps he was a graveyard stray who was loved so much that the town gave him a story, and then a second dog to keep it going. Either way, the people of Edinburgh fed him, licensed him, buried him and built him a statue. The loyalty in this story may belong as much to the city as to the dog.
Test yourself: Greyfriars Bobby quiz
Question 1 of 5
In which city did Greyfriars Bobby live?
Bobby lived around Greyfriars Kirkyard in the Old Town of Edinburgh, Scotland.
Question 2 of 5
What job did John Gray do in the best-known version of the story?
In the best-known version, Gray joined the Edinburgh City Police as a nightwatchman, and Bobby followed him on his rounds.
Question 3 of 5
Who paid for Bobby’s licence and gave him a collar in 1867?
Sir William Chambers, Lord Provost and a director of the Scottish SPCA. The collar is now in the Museum of Edinburgh.
Question 4 of 5
What did historian Jan Bondeson suggest happened around 1867?
Bondeson speculated that a younger dog replaced the first Bobby, which would explain the unusually long 14-year vigil.
Question 5 of 5
Which breed did Mike Macbeth argue Bobby probably was?
Macbeth argued for the Dandie Dinmont, which was very popular around Edinburgh at the time, while Skye Terriers were mostly found on the Isle of Skye.
Sources
- Greyfriars Bobby, Wikipedia
- Greyfriars Kirkyard, Wikipedia
Featured image: the Greyfriars Bobby statue and fountain, Edinburgh, Nilfanion, CC BY-SA 3.0, via Wikimedia Commons.



