A brace from new cap Hadleigh Parkes helped Wales beat South Africa 24-22 in their end-of-year Test at the Principality Stadium on Saturday.
Wales dominated the first half and led 21-10 at the break. A spirited fightback from the Springboks in the second put them ahead, but a late penalty gave Warren Gatland's team the win.
A Dan Biggar masterclass in the opening stages left the Springboks reeling.
First, his cross-kick found Hallam Amos, who set Scott Williams up for the opening try in the fifth minute, which Leigh Halfpenny converted.
Then, three minutes later, Biggar chipped the ball through for Parkes to gather and score. Once again, Halfpenny added the extras.
Malcolm Marx thought he had powered his way over at the other end in the 19th minute, but TMO Rowan Kitt was less convinced and awarded the Springboks nothing more than a five-metre scrum.
With 10 minutes left of the first 40, Josh Navidi was penalised for a high tackle on Handré Pollard. The fly-half then stepped up to the tee and put South Africa on the board.
However, it seemed that every silver lining preceded another cloud for the visitors. In the 33rd minute, Wales scored their third try. Andries Coetzee's charged-down kick was chased by Taulupe Faletau, who passed inside to Parkes for yet another finish.
On the stroke of half-time, Warrick Gelant pulled a try back on his first start. Dillyn Leyds initiated a counter-attack for the Springboks and Jesse Kriel put a clever kick through for the Blue Bulls youngster to chase and dot down. Pollard nailed a well-executed conversion kick.
The Springboks picked up where they left off at the start of the second half, and after a sustained spell of pressure, Pollard went over for their second try six minutes in. However, he failed to convert this time.
In the 55th minute, South Africa struck again. They worked the ball out left, with Malcolm Marx getting the final pass away to Jesse Kriel, who crashed through Halfpenny's poor tackle and scored. Pollard put the Springboks in front with a fantastic conversion.
Wales went back in front in the 68th minute with a Halfpenny penalty after Pieter-Steph du Toit was blown up for not rolling away.
Unfortunately for Allister Coetzee's side, they were unable to fight back again and the hosts held on for a much-needed victory, ending a difficult year on a high note.
The scorers:
For Wales:
Tries: Williams, Parkes 2
Cons: Halfpenny 3
Pen: Halfpenny
For South Africa:
Tries: Gelant, Pollard, Kriel
Cons: Pollard 2
Pen: Pollard
Wales: 15 Leigh Halfpenny, 14 Hallam Amos, 13 Scott Williams, 12 Hadleigh Parkes, 11 Steff Evans, 10 Dan Biggar, 9 Aled Davies, 8 Taulupe Faletau, 7 Josh Navidi, 6 Aaron Shingler, 5 Alun Wyn Jones (c), 4 Cory Hill, 3 Scott Andrews, 2 Kristian Dacey, 1 Rob Evans
Replacements: 16 Elliot Dee, 17 Wyn Jones, 18 Rhodri Jones, 19 Seb Davies, 20 Dan Lydiate, 21 Rhys Webb, 22 Rhys Patchell, 23 Owen Watkin
South Africa: 15 Andries Coetzee, 14 Dillyn Leyds, 13 Jesse Kriel, 12 Francois Venter, 11 Warrick Gelant, 10 Handré Pollard, 9 Ross Cronje, 8 Dan du Preez, 7 Pieter-Steph du Toit, 6 Siya Kolisi, 5 Lood de Jager, 4 Eben Etzebeth (c), 3 Wilco Louw, 2 Malcolm Marx, 1 Steven Kitshoff
Replacements: 16 Bongi Mbonambi, 17 Trevor Nyakane, 18 Ruan Dreyer, 19 Oupa Mohoje, 20 Uzair Cassiem, 21 Louis Schreuder, 22 Elton Jantjies, 23 Lukhanyo Am
Referee: Jérôme Garcès (France)
Assistant referees: Wayne Barnes (England), Frank Murphy (Ireland)
TMO: Rowan Kitt (England)
Japan can hold their heads high as they were competitive throughout and eventually outscored their hosts three tries to two although it was the goal-kicking of Francois Trinh-Duc that kept France in this match and he eventually finished with a 13-point haul courtesy of three penalties and two conversions.
In a tough and uncompromising encounter, both sides deserve credit for making this the entertaining spectacle that it was and the All Blacks eventually outscored their hosts five tries to two with Waisake Naholo and Rieko Ioane scoring a brace apiece.
Tries from Mike Brown, Alex Lozowski, Elliot Daly (2), Henry Slade and Semesa Rokoduguni saw them past Samoa in a scrappy showing.
The first half was a relatively even contest, but the match turned after Sekope Kepu was sent off right before half-time. From there, Scotland dominated.
Ian Keatley's penalty was key with tries coming from Darren Sweetnam, Dave Kearney and Jack Conan, with Joey Carbery adding a conversion.
The All Blacks did not always have things their way, especially during the opening half which was dominated by Scotland, and the teams went into the sheds at the interval with the score level at 3-3.
England showed great resilience on defence and an ability to counter-attack, forcing the opposition in to errors which they are good at capitalising on.
It wasn't pretty and the Welsh were never out of sight as the Lelos stayed in the match throughout, with Hallam Amos the only try scorer.
In a topsy-turvy match, in which the lead changed hands eight times, the Pumas took control of proceedings during the latter part of the second half and eventually outscored their hosts three tries to none.
Tries from Dane Coles, Ryan Crotty, Sam Cane and a Waisake Naholo brace proved too much for France who scored through Teddy Thomas and a penalty try.
Tries from Tatafu Polota-Nau, Adam Coleman, Michael Hooper and Kurtley Beale proved too much for Wales who scored through Steff Evans and Hallam Amos late on.
Nathan Hughes and Semesa Rokoduguni's tries saw them to victory in a scrappy display that needs to improve next week against Australia.
Tries from Stuart Hogg, Huw Jones, Alex Dunbar, Pete Horne and a Stuart McInally brace proved too much for Samoa who scored through Josh Tyrell, Piula Faasalele, Tim Nanai-Williams, Kieran Fonotia and Ofisa Treviranus.
The result is a significant one for the Azzurri as it is their first victory of 2017 and ends a nine-match losing streak which stretches back to their 19-17 loss to Tonga in Padova last November.
Tries from TJ Perenara, Vaea Fifita, Ngani Laumape, Sam Cane and Nathan Harris proved too much for the Barbarians who scored through Richie Mo'unga, Sam Carter and a George Bridge brace.
As the scoreline suggests, this was a one-sided affair with the Wallabies dominating for large periods and they eventually outscored the Brave Blossoms nine tries to three with Tevita Kuridrani leading the way with a deserved hat-trick.
The visitors were full value for their win and outscored their hosts seven tries to none with Ihaia West contributing 14 points courtesy of four conversions and two penalties.
The result was some turnaround from last week's 25-23 loss at home to the USA, as the Georgians left nothing in the tank against the islanders.