Reivers ended up on top of Edinburgh at Netherdale
Border Reivers: (3) 10
Edinburgh: (3) 3
Sloppy Edinburgh surrendered their slim hopes of claiming the Magners League crown as they were beaten by bottom side Border Reivers at Netherdale.
Garry Law emerged as the villain-turned-hero for Reivers, who grabbed their first win in 15 games.
Law squandered three easy penalty chances but made ample amends with the try that made all the difference.
Duncan Hodge had kicked Edinburgh into the lead before Steven Jones replied then converted after the only try.
Both sides looked nervous during the scrappy opening exchanges, with mistakes galore preventing fluent action.
Edinburgh earned the first scoring opportunity when the hosts were guilty of failing to release the ball in contact - and fly-half Hodge confidently slotted the 35-metre penalty.
That sparked some pressure from the visitors and they put together at least 12 well-controlled phases, only for hooker Dougie Hall to be bundled out of play.
And winger Matt Dey spilled the ball on the overlap following slick work by Hodge and Marcus Di Rollo.
Reivers hit back with a series of midfield surges featuring Gregor Townsend.
They pressured Edinburgh into giving away an offside penalty, but Law sent his effort sailing wide of the near post.
Garry Law (left) scored the only try of the game against Edinburgh
They suffered a further setback when Brendon Danial, who had already come on as a sub for Ben MacDougall, was forced off with a calf problem and replaced with Jones.
Reivers kept up the momentum, but Law made a hash of another simple penalty attempt.
And he sent his next kick crashing against the upright, the ball rebounding to safety.
Jones took over the boot duties and levelled the issue from close range after Ally Strokosch was spotted swinging a fist in his own danger zone.
Law's fortunes changed just after the restart when he scooted over for an excellent touchdown.
Reivers shipped the ball at speed from right to left, with Bryan Rennie's offload giving Law the time and space to squeeze in at the corner.
Jones slotted the conversion from a wide angle to open up a seven-point gap.
He was then at the centre of controversy when he was sinbinned for back-line offside - an offence that Reivers claimed they had been consistently the victim of themselves earlier in the game.
Two minutes later, referee Neil Paterson sent Edinburgh forward Matt Mustchin to the bin for a minor misdemeanour.
Edinburgh stepped up the pace in the dying minutes, but they were unable to break down the spirited home defence.
Border Reivers: Moffatt, Flockhart, MacDougall, Rennie, Law, Townsend, C. Cusiter, Kerr, Ford, Douglas, Dalziel, Palepoi, Newlands, Brown, Miller, Daniel.
Replacements: Daniel for MacDougall (8), Jones for Daniel (22). Not Used: Scott, Kalman, Chrystie, Vernon, Forrest.
Edinburgh: Cairns, Dey, Di Rollo, Dewey, Lopez Fleming, Hodge, Senio, Jacobsen, Hall, G. Cross, Mustchin, Murray, Strokosch, Callam, Hogg.
Replacements: Warnock for Cairns (45), Godman for Hodge (45), Laidlaw for Senio (73), Rennie for Hogg (73). Not Used: Kelly, Hewett, Bentley.
Ref: Neil Paterson (SRU)