Derry City gave boss Stephen Kenny the perfect send-off by coming from behind three times to beat St Pat's 4-3 after extra-time in a superb FAI Cup final.
Mark Farren celebrates scoring Derry's opening goal
Dave Mulcahy beat David Forde for the opener on 20 minutes, but Mark Farren slotted home the equaliser after 25.
Trevor Molloy made it 2-1 with a penalty on 74, but Clive Delaney scored with a backward header on 85 minutes.
Sean O'Connor put St Pat's ahead on 103, but Peter Hutton tapped in on 100 and Stephen Brennan netted an own goal.
The match got off to a dull start in very windy conditions, but Mulcahy opened the scoring when he timed his run perfectly and drew Forde before chipping the ball over him.
Pat McCourt threaded the ball through from inside his own half for Farren to slot the ball past the keeper for his 18th goal of the season.
McCourt and Gary Beckett had chances before half-time for the Candystripes, whose manager had returned for the game after joining Dunfermline, but were unable to convert.
Pat McCourt and Anto Whelan challenge for the ball
After the break, Delaney directed a header wide and Beckett tried to lob the keeper as Kenny's side started to dominate.
On 71 minutes, Mark Farren squandered a great chance when he shot wide with the goal gaping after Beckett sent him through on goal.
St Pat's went ahead through Molloy's spot-kick after the striker had been brought down by Hutton inside the area.
Hutton denied Molloy with a last-ditch tackle soon after and substitute Kevin McHugh also had an effort saved.
With five minutes remaining, Delaney headed in after McCourt flicked the ball into the area and, at the other end, Molloy headed narrowly wide.
After the match went into extra-time, Gareth McGlynn had an attempt saved and Barry Ryan pushed a Sean Hargan piledriver round the post.
O'Connor put St Pat's ahead for the third time before Ryan again distinguished himself by diving to save a Beckett effort.
In the second period, Hutton ghosted in at the far post to fire in from McCourt's corner and then the livewire McCourt had a stinging drive saved by the legs of Ryan.
Brennan headed another Derry corner into his own net with five minutes left to give Derry the cup win after a remarkable match played in very blustery conditions.
Derry City: Forde, McCallion, Brennan, Hutton (c), Delaney, Deery, Higgins, Molloy, McCourt, Farren, Beckett.
St Pat's Athletic: Ryan, Quigley, Foley (c), Brennan, Frost, Murphy, Foley, Mulcahy, Rutherford, Keegan, Molloy.