Mourners flagged down a police patrol car after being left “outraged” as Aaron Dennington and Michael Ogilvie took their clothes off at the Capital’s Eastern Cemetery, close to Easter Road, on May 15.
Officers found the men naked with alcohol containers lying on the ground.
Edinburgh Sheriff Court was told the pair had been drinking in memory of Ogilvie’s father during the incident at 11.15am.
The court heard the men started dancing naked in full view of anyone walking past the cemetery.
Fiscal Depute Christine Danbolt told Sheriff Adrian Cottam that people who had been visiting their mother’s grave were outraged.
Defence solicitor Iain Tweedie said the men had decided to go to the top of Arthur’s Seat and drink to the memory of Ogilvie’s father. But both men soon became intoxicated and decided to go to the Eastern Cemetery on Drum Terrace rather than climbing Arthur’s Seat.
Dennington, 35, from Jane Street in Edinburgh, was fined £240 after pleading guilty to committing a public indecency by removing his clothes, exposing his buttocks and genitals, and dancing and standing on graves.
Ogilvie had also been fined £240 after previously admitting to the same offence.
Join our Facebook group Our Edinburgh to share images and news from and around the Capital