Wilfried Bony's stoppage-time penalty put Swansea City on the verge of Barclays Premier League safety as they beat Newcastle United 2-1.
Bony kept his cool from the spot in the first minute of added time at St James' Park to move Swansea six points clear of the relegation zone with three matches remaining after substitute Marvin Emnes was brought down by Cheikh Tiote.
The Ivorian had earlier equalised with a powerful header in first-half stoppage time after Shola Ameobi's first top-flight goal since December 2012 put the home side in front.
Swansea head coach Garry Monk enjoyed his first away win since taking charge, the Welsh club's first victory away from the Liberty Stadium since November, while Newcastle fell to a fifth straight defeat.
There was drama in the first minute as the ball struck referee Chris Foy in the face, although the official was initially able to continue after the being assessed by the Newcastle physio.
Swansea soon got the upper hand and Newcastle manager Alan Pardew, watching from the stands, was forced into a change only 21 minutes in when Papiss Cisse picked up an injury and fit-again full-back Mathieu Debuchy replaced him.
Pardew's side struggled to test Swansea in the early stages but they were in front out of the blue after 23 minutes. Recalled striker Luuk de Jong got the better of the Swansea defence in the penalty area and picked out Ameobi, who moved the ball out of his feet and finished past Michel Vorm to end Newcastle's goal four-game goal drought.
Fourth official Anthony Taylor then replaced Foy on the half-hour mark as a result of his early blow to the face.
Newcastle were forced to make another change five minutes before the break, with leading scorer Loic Remy making his eagerly-awaited return from injury in place of De Jong after the Dutchman landed awkwardly on his ankle.
Newcastle looked set for a half-time advantage, but Bony had other ideas as he rose highest to head home Ben Davies' inviting corner a minute into time added on.
Newcastle almost restored their lead just after the break, but Swansea keeper Vorm got down to his left to keep out Dan Gosling's strike. Vurnon Anita then flashed a left-foot strike just wide of the far post, but both sides lacked quality in the final third in a frantic second half. Swansea's Jonathan de Guzman came close 12 minutes from time, but his right-footed strike found the roof of the net.
Bony scented a winner when he raced clear eight minutes from time only to be thwarted by Tim Krul, but he was not to be denied from the penalty spot as he sent the Dutchman the wrong way after Tiote had upended Emnes.
Newcastle manager Alan Pardew: "It was a game that looked like it was going to be a draw. I felt we played a lot better and that last goal was a killer blow.
"There's no way we should have allowed that to happen. There were three or four errors in that goal.
"We should have won, but errors in both halves cost us dear. I'm disappointed because the effort was there, but we're making errors and getting punished for it and we can't afford to do that on the run we are on.
"We're going to have to grin and bear it and see what we can do. I'm pretty sure I would have stopped that last goal had I been on the sidelines, but that's how it is."
Swansea head coach Garry Monk: "We started well in the first 20 minutes, but then they got the goal and we got a bit sloppy in our passing.
"Thankfully, our second goal was a penalty. It was good to get those rewards. We've played a lot better than we've done today and come away with nothing.
"It's been a difficult season and very inconsistent for the standards we've set. We're just trying to get a job done and these three points go a long way to doing that."