A last gasp try from captain Justin Tipuric and 16 points from Dan Biggar helped Ospreys record an improbable 26-19 win over Edinburgh.
Edinburgh made four changes to the squad that lost to Cardiff last week and it was the visitors that took the lead on seven minutes when Tim Visser ran over for the opening score of the game.
The Dutch winger capitalised on an error by Ospreys full-back Richard Fussell to score the Scottish outfit's only try.
Ospreys hit back with a try of their own after 11 minutes through Rhys Webb. The scrum-half picked up from where he left off in Ospreys comfortable win over Leinster last week with his second try in as many RaboDirect PRO12 games.
Biggar and Grieg Laidlaw traded penalties once again early in the second half as neither side managed to gain a stranglehold on the game.
The tight second period saw little in the way of chances for either side and it was the home side's number ten that struck a 65th minute penalty to edge last year's Celtic League winners ahead with fifteen minutes remaining.
In the final five minutes, Ospreys lock Ian Evans was sent to the sin bin to leave the Swansea based side a man light for the remainder of the game and Laidlaw matched Biggar kick for kick with a penalty to level the match at nineteen apiece.
It was Ospreys however that had the final say, snatching victory at the death with the last play of the game when Tipuric ran over to give the Welsh side an unlikely victory and condemn Edinburgh to back-to-back defeats.
Tries: Webb, Tipuric
Cons: Biggar 2
Pens: Biggar 4
Pens: Laidlaw 4
Yellow card: Ian Evans (Ospreys)
Ospreys: 15 Richard Fussell, 14 Kristian Phillips, 13 Andrew Bishop, 12 Ashley Beck, 11 Hanno Dirksen, 10 Dan Biggar, 9 Rhys Webb, 8 Jonathan Thomas, 7 Justin Tipuric (Capt), 6 Tom Smith, 5 Ian Evans, 4 Ian Goughm 3 Cai Griffiths, 2 Mefin Davies, 1 Duncan Jones.
Replacements: 16 Scott Baldwin, 17 Aaron Jarvis, 18 Joe Rees, 19 James Goode, 20 James King, 21 Tom Isaacs, 22 Matthew Morgan, 23 Sonny Parker.
Edinburgh: 15 Tom Brown, 14 Simon Webster, 13 Matt Scott, 12 James King, 11 Tim Visser, 10 Gregor Hunter, 9 Greig Laidlaw, 8 David Denton, 7 Roddy Grant, 6 Sean Cox, 5 Esteban Lozada, 4 Grant Gilchrist, 3 Lewis Niven, 2 Steven Lawrie, 1 Kyle Traynor.
Replacements: 16 Andrew Kelly, 17 Robin Hislop, 18 Shaun Knight, 19 Steven Turnbull, 20 Hamish Watson, 21 Chris Leck, 22 Jim Thompson, 23 Lee Jones.
Referee: David Wilkinson (IRFU)