Wales scored three tries to kick-off their northern summer tour with a 22-20 victory against beat South Africa at RFK Stadium in Washington D.C.
Hallam Amos and Tomos Williams scored tries and Gareth Anscombe kicked seven points before Ryan Elias came up with the deciding late effort.
The Springboks scored two tries through wingers Travis Ismaiel and Makazole Mapimpi on Test debut.
Elton Jantjies opened the scoring for South Africa with a straightforward penalty after Tom Prydie had sealed off at the preceding ruck, and Wales were dealt a severe blow when wing Steffan Evans left the field injured after appearing to damage his knee.
Wales then scored two tries in three minutes to take control of the match.
The first try came after captain Ellis Jenkins had pinched the ball from the ruck in the South African 22.
The ball was recycled, and Hadleigh Parkes, who had replaced Evans, and Ross Moriarty showed good hands to put Dragons fullback Amos over the stripe.
Wales had the bit between their teeth and they strung some phases together before Cardiff Blues scrum-half Williams wriggled his way over the try line to score on his international debut.
Anscombe converted both scores.
The Springboks pushed hard to narrow the deficit on the stroke of halftime, with a series of powerful surges on the Wales line, but Jenkins was again to the fore, winning a penalty at the breakdown, and the Dragons turned around 14-3 ahead at the interval.
It took only three minutes of the second half for South Africa to cross the whitewash, with Ismaiel intercepting a loose pass from Amos to run in unopposed, but Anscombe immediately extended Wales' lead with a penalty attempt after the Springboks had infringed at the tackle area.
Wales butchered a clear try-scoring opportunity when Moriarty charged clean through. The ball was recycled only for Owen Watkin to knock the ball forward with four men outside him.
Warren Gatland's side were reduced to 14 men when Watkin was sent to the sin bin for deliberately knocking the ball over his own dead ball line under pressure from Jesse Kriel.
Mapimpi crossed in the left corner, after a series of dominant scrums, and Jantjies landed the touchline conversion to level the scores at 17-17 going into the final quarter.
The South African forwards began to dominate as they attempted to drive their way over the try line.
Ismaiel appeared to cross in the right corner, but he was forced into touch by Cory Hill.
Jantjies' replacement Robert Du Preez put South Africa into the lead with a penalty attempt from in front of the posts after their forwards had destroyed the Wales scrum.
But, just as the Springboks looked to be heading for victory, Elias touched down for Wales after a charge down from Williams.
The Springboks pushed hard for the win, but Wales held out to record a notable victory.