An incredible 88th-minute strike by Colin Healy proved a fitting winner to a fantastic game between Cork City and St Patrick's Athletic at Turner's Cross.
With second place on the line the game was poised with two minutes remaining, before Healy latched onto a half-cleared Billy Dennehy corner with a stunning overhead kick, nestling into the back of the net.
In truth it was no more that City deserved, making the most of the running while the visitors dealt on the break.
The win restores the six-point cushion in second place, and maintains pressure on league leaders Dundalk.
City had the best of the opening running, Mark O'Sullivan shooting wide from 15 yards out before setting up John O'Flynn in front of goal, only to be denied by a brilliant Killian Brennan covering tackle.
The Dublin outfit had a fantastic chance to open the scoring on the hour mark, as Keith Fahey received the ball right in front of goal, but he saw his shot well saved by Mark McNulty, before he blasted the rebound over.
City's chances were boosted further in the 78th minute as Mark Quigley received his second yellow, before Healy stole the points.