Springbok captain Victor Matfield paid tribute to his side's staunch defence as the world champions withstood a late rally from Wales to win 25-29 at the Millennium Stadium.
The victory kept South Africa's hopes of a Grand Slam alive after they brushed aside Ireland last weekend.
South Africa were 17-9 behind at the break but scored 17 unanswered points in the space of seven minutes to grab the initiative from Wales.
Wales refused to cave in and mounted a fierce late rally but couldn't breach the green wall.
"I'm very proud of the boys, they showed great character," said Matfield. "Wales put us under pressure and it was a great game for the spectators to watch.
"Well done to Wales, they really came out and played well. "(Defending) is something we really worked hard on (in training) and it came through and we were happy with that," he added.
Referring to a possible Grand Slam, Matfield said: "I don't know. There's still a fair way to go. We're focusing on Scotland and that's going to be another huge game. We will enjoy tonight and then start fresh from zero on Monday again."
With just a week to go before Wales kick off their Rugby Women's World Cup campaign against hosts France in Paris, head coach Rhys Edwards and flanker Sioned Harries are looking ahead to the tournament with optimism.
After two years in the international wilderness, Adi Taviner is hoping to make up for lost time when she takes part in her second Women's Rugby World Cup which kicks off in Paris next Friday where Wales take on hosts, France.
The WRU's Women and Girls legacy events - #TRY OUR GAME have proved popular this week with current players and newcomers to the game learning new skills and picking up tips from national squad players.
We caught up with Shona and Ellie from the Wales women team ahead of the start of the Women's Rugby World Cup in Paris next month at a recent women's training session to encourage and promote more women and girls to try their hand at rugby. #tryourgame
The Women's Rugby World Cup warm-up clash between Wales and USA proved bittersweet for centre Elen Evans. Despite being one of the star performers on the day on her 50th Test appearance, USA edged home 10-7 at Cross Keys.
Wales completed their Junior World Championship campaign with a victory over Samoa. Team manager Mark Taylor and No 8 James Benjamin reflect on a tournament which saw Wales win three games and lose two.