John Gray died on February 8, 1858 in Edinburgh, Scotland, leaving very little behind except for a little Skye terrier named Bobby. The day after the burial, the curator noticed Bobby lying on the fresh mound of dirt. He immediately chased the little dog away, but the next day he was back. Again, the curator chased him day, but on the third day-despite the cold and the rain-Bobby was back. Finally, the curator took pity on the poor dog and allowed him to stay.
For the next fourteen years, Bobby kept constant watch over his owner's grave, rarely leaving except to take his noontime meal at exactly one o'clock. After a while, he came to be known as Greyfriars Bobby, after the cemetery in which his master was buried.
Bobby outlasted his master by fourteen years. When he died, he was buried just inside the gate at Greyfriars Kirkyard. He could not be buried with his master because it was consecrated ground. His headstone reads, "Greyfriars Bobby - died 14th January 1872 - aged 16 years - Let his loyalty and devotion be a lesson to us all."