Michael Gault rescued title-chasing Portadown with a 90th-minute winner against one-from-bottom Institute in Monday's match at Shamrock Park.
The Ports skipper latched on to a poor clearance and drilled a low right-foot shot past Marty Gallagher.
The win sees third-placed Portadown move to within two points of Premiership leaders Crusaders.
They had gone in front inside two minutes through Sean Mackle but Stephen Curry replied for Institute.
Mackle's goal was an accurate finish into the far corner after a headed flick-on by Gault.
The Ports might have been expected to add to their tally but shots wide of the target by Mark McAllister and Peter McMahon were all they could muster.
Institute, without a win in 11 league matches, pulled level early in the second half.
Stephen Curry drilled in the equaliser at the second attempt from the edge of the box after Aaron Walsh's free-kick.
The Ports struggled to find an effective response although Chris Casement did force a save from Marty Gallagher with a free-kick and from the resulting corner big defender Garry Breen headed wide.
Institute sub Matty Young had a chance to put the visitors ahead when put through, but keeper David Miskelly was out quickly to make a blocking save.
McAllister then dragged a shot across the face of goal for Portadown who looked to be running out of time.
Then former Linfield skipper Gault picked up the loose clearance and advanced to fire in the vital winner from outside the penalty area.