South Africa mauled their way over for a late try to snatch a narrow 23-18 victory over Wales at a rain soaked Principality Stadium on Saturday and begin their autumn international tour on a winning note.
Malcolm Marx scored the only try of the match with seven minutes remaining as the World Cup holders came from behind to take the lead for the first time in the test and record their first victory in Cardiff in eight years.
They were 18-15 behind after the two teams had traded penalties throughout a bruising contest with Dan Biggar kicking six out of six for his side.
Handre Pollard put over four penalties for South Africa, with a long-range contribution from his own half by Frans Steyn and an additional three points on the final whistle for Elton Jantjies.
The 34-year-old Steyn, who came on early as an injury substitute, was named man-of-the-match not only for his long-range kicking but also several exciting line breaks.
Wales led 12-9 at halftime as South Africa struggled to get their mauls going and were poor with their box kicking.
Wales looked threatening on the few occasions they got the ball out wide, especially to their explosive wingers Josh Adams and Louis Rees-Zammit.
There was only a single scrum in the first half but South Africa won several penalties from setpieces in the second as their forward power began to tell.
But they continued to give away penalties as Wales kept themselves in the lead with Biggar making it 18-15 in the 65th minute.
A minute before that, Wales had a one-man advantage out wide with substitute Liam Williams in a good position to score when a spectator ran onto the field and disrupted the move.
“You don’t want to see that in a game but there was nothing that the match officials could do about that,” said Wales coach Wayne Pivac.
South Africa won a penalty within easy range to tie the game in the 72nd minute but gambled on kicking for a lineout instead of seeking to level the score.
It was from the lineout that Marx crashed over at the back of a driving maul that steamrolled the home defence to snatch victory near the end.
“It came down to just a couple of mistakes in the end,” said Pivac.
His South African counterpart Jacques Nienaber said: “It was good to get one under the belt but we knew it would be a grind.”
South Africa take on Scotland at Murrayfield on Saturday while Wales host Fiji in Cardiff on Sunday in their next test.