Edinburgh secured just their third RaboDirect Pro12 triumph of the season with a 23-13 victory over the Ospreys at Murrayfield.
Matthew Morgan scored all of the Welsh region's points in the first half as they took a 13-8 lead into the break, with the Scottish team's response coming through WP Nel's try and a Gregor Hunter penalty.
But the hosts dominated the second period and five more Hunter three-pointers gained a crucial win.
Although the Ospreys started the season in disappointing fashion, losing their first three matches in the Pro12, they have bounced back superbly.
Five consecutive victories leading into this encounter put them back in play-off contention. However, with both teams missing a number of internationals it was no surprise to see the game start in scrappy fashion.
Morgan's interception was the only action of note in the opening exchanges before the visiting stand-off edged them ahead after 16 minutes. Hunter levelled the scores soon after with a penalty, but the Welsh region's fly-half second from the tee regained their advantage.
Despite controlling the majority of the first half, the Ospreys were punished when the hosts' first real try-scoring opportunity ended in Nel touching down. Dougie Fife made the initial break before good hands from Richie Rees and Hunter sent the prop over.
Edinburgh's lead didn't last for long as Morgan crossed the whitewash after a spell of pressure to give them a deserved 13-8 lead at the interval.
Visiting prop Owen Williams was sin-binned at the start of the second period and Hunter added two three-pointers during that time to take the Scottish outfit ahead.
Further penalties from the home side's fly-half extended that advantage to 20-13. And Hunter sealed the win with a last minute kick from the tee.
Pens: Hunter 6
Pens: Morgan 2
Edinburgh: 15 Greig Tonks, 14 Sep Visser, 13 Dougie Fife, 12 James King, 11 Tom Brown, 10 Gregor Hunter, 9 Richie Rees, 8 Stuart McInally, 7 Roddy Grant, 6 Sean Cox (c), 5 Izak van der Westhuizen, 4 Perry Parker, 3 Willem Nel, 2 Ross Ford, 1 John Yapp
Replacements: 16 Alun Walker, 17 Allan Jacobsen, 18 Lewis Niven, 19 Robert McAlpine, 20 Hamish Watson, 21 Chris Leck, 22 John Houston, 23 Mike Penn.
Ospreys: 15 Richard Fussell 14 Tom Isaacs, 13 Andrew Bishop, 12 Jonathan Spratt, 11 Eli Walker, 10 Matthew Morgan, 9 Rhys Webb, 8 Joe Bearman (c), 7 Sam Lewis, 6 George Stowers, 5 James King, 4 Lloyd Peers, 3 Owen Williams, 2 Scott Baldwin, 1 Ryan Bevington.
Replacements: 16 Duncan Jones, 17 Matthew Dwyer, 18 Nicky Thomas, 19 Ian Gough, 20 Morgan Allen, 21 Tom Habberfield, 22 Matthew Morgan, 23 Ross Jones.
Referee: David Wilkinson (Ireland)