Chris Coleman claimed his first win as Wales boss in Cardiff - and heaped even more pressure on Scotland manager Craig Levein in a a 2-1 win in their World Cup qualifier.
With both teams starting the night in need of a first Group A victory, it was the Scots who took a first-half lead through James Morrison.
But hopes of a morale-boosting win were shattered in the second half when star man Gareth Bale won and converted a penalty, before grabbing a stunning long-range winner with a minute to go. The win sees Wales take their first points of the campaign and move above Scotland, who have just two points from three matches.
The match began at a frantic pace with the visitors exerting some early pressure before Bale hooked over from distance with the first real chance of the match. The Tottenham man then came much closer to opening the scoring with a curling drive that fell across the face of goal and just inches past the far post.
Steve Morison passed up a great chance to break the deadlock when he nodded wide from a lovely Bale cross from the right and it was an opportunity they would be left to rue as Scotland surged into the lead seconds later.
Goalkeeper Allan McGregor punted a long ball up the pitch which was met by Steven Fletcher who flicked on for Morrison to drive home with a cool finish with 27 minutes on the clock.
Steven Fletcher could have added his own name to the scoresheet but connected awkwardly with an inviting cross from Danny Fox and the chance was lost, before nodding down for Morrison but, this time, he volleyed over.
Wales tried to haul themselves back into the game in the second half and Morrison had another chance to leave the net bulging with a point-blank effort that stung the palms of the Wales goalkeeper. Aaron Ramsey should have levelled for the home side when he burst through on goal with only Alan McGregor to beat but the goalkeeper raced off his line to block with his legs.
The Scots thought they had doubled their lead when Steven Fletcher bulleted a header into the back of the net. But the assistant referee deemed Charlie Adam's cross had swerved out of play and the effort was disallowed, although television pictures suggested this may not have been the case.
Wales were back on level terms with 10 minutes to go when Shaun Maloney was deemed to have fouled Bale in the box, and the winger brushed himself off to rifle past McGregor from the penalty spot. Alan Hutton then fired just over as the Scots searched for a late winner but the honours went to Wales instead with a minute to go when Bale curled a left-foot shot past McGregor to claim a last-gasp win.