A superb second-half display by Derry City ensured they defeated Shamrock Rovers to make it six wins in a row.
All the goals came after the break, with Barry McNamee and Ryan McBride giving the home side a two-goal lead, before Stephen Rice made it a nervy finish for the hosts as he pulled one back in stoppage-time.
Derry suffered a setback on eight minutes when ex-Rovers man Paddy Kavanagh looked to injure his hamstring and was replaced by Patrick McEleney.
The visitors went close to taking the lead on 33 minutes after a slick free-kick routine. Sean O'Connor laid the ball off to Ronan Finn and his stinging drive from 25 yards was superbly kept out by Gerry Doherty.
A fantastic cross by McEleney from the right then picked out an unmarked McNamee at the back post and although it looked like he was trying to cushion his header back into Rory Patterson's path, the ball spun into Barry Murphy's bottom left-hand corner.
Derry went close to adding a second on 76 minutes when Patterson did well to latch onto McBride's long clearance, but his shot from just inside the box flashed inches wide.
Declan Devine's side added a second on 80 minutes when McBride powerfully headed home from close range.
Soon after Rovers should have pulled one back when Karl Sheppard missed from close range, but Rice did fire home from 20 yards, through a ruck of players, in injury-time.
Derry City – Doherty, Madden, McBride, McCaffrey, Crawley (Curran 84); Higgins, Molloy, B McNamee; Rafter (Duffy 74), Patterson, Kavanagh (McEleney 8)
Shamrock Rovers – Murphy, Sullivan, Elebert (Rice 74), Foran, Powell; O'Connor (McCabe 59), Chambers, Finn, Dennehy; Kilduff (Quigley 65); Sheppard
Ref – D Tomney (Dublin)