Dan Biggar kicked six penalties to steer the Ospreys back from the brink of defeat as they overturned a 13 point deficit to beat Ulster 23-22 at the Liberty Stadium.
The axed Welsh outside half guided the Magners League champions to a much needed victory that keeps them in touch with the top four teams on a weekend when two of them slipped up away from home.
The Scarlets were pipped in Connacht and runaway leaders Munster were overturned in Treviso, so the Ospreys needed to make the most of the weekend by closing the gap on the front runners for the four Play-Offs places on the road to the second Magners League Grand Final on Saturday, 28 May.
The four points looked a long way off after Ian Humphreys had given Ulster a 13-0 lead with two penalties and then a penalty try which he also converted. In much the same way as they had blown away Cardiff Blues on their last visit to Wales, when they ran out 37-15 winners, Ulster scored at almost a point a minute in the opening quarter to create what looked like being a winning platform.
But after that bright opening the Ospreys scrum began to turn the screw and the penalties flowed as the Ospreys finally got their act together.
That allowed Biggar to prove he can still hit the mark with his goalkicking as he landed six out of eight attempts to punish the visitors. One of his penalties was a monster from 55 metres on the stroke of half-time that gave the home side the lead for the first time at 14-13.
As well as Biggar's three penalties the Ospreys also conjured up a corner try for ex-All Black flanker Marty Holah which owed much to the skill and vision of Ashley Beck, who threw a long, cut out pass to create the opening.
Two silly home indiscretions at the start of the second half allowed Pienaar, who took over at outside half from Humphreys when he left the field with a shoulder problem after 31 minutes, to show off his considerable goalkicking skills and Ulster suddenly found themselves five points clear.
But Biggar replied with three more penalties, two for scrum offences, and not even a third strike from Pienaar six minutes from time could claw back the deficit.
Scorers:Ospreys: Try: M Holah; Pens: D Biggar 6. Ulster: Penalty Try; Con: I Humphreys; Pens: R Pienaar 3, I Humphreys 2
As the countdown continues for RWC2015, Tournament Chief Executive Debbie Jevans visited the Millennium Stadium to discuss preparations for the eight matches and reveal the positive news that 100,000 tickets for games at the home of Welsh rugby have sold in the last seven days.
Jason Harries is targeting a first win on the World Series circuit this season with Wales. The series returns to action this weekend in Dubai where Harries is part of a team hoping to build from its efforts in round one in October.
Wales skipper Jevon Groves says his side have addressed a few points from Gold Coast and aim to 'hit the ground running' in the next two rounds of the World Series, kicking off with this weekend in Dubai before heading off to South Africa next week.
Wales Sevens manager Steff Thomas is hopeful his side can build from a quarter-final spot in the opening round of the World Series in Australia when his side take part in the forthcoming double header in Dubai and South Africa.