The Springboks levelled the Greatest Rivalry series with a 33-26 victory over the All Blacks in Cape Town on Saturday.
South Africa were made to work for the result after New Zealand outscored them by four tries to three, but Cheslin Kolbe's 18-point contribution from the boot ultimately proved decisive.
The victory moves the series to 1-1 ahead of the third Test at FNB Stadium next weekend. The fourth and final Test will be played in Baltimore on 12 September.
Springboks make fast start as All Blacks hit back
Rassie Erasmus made late changes to his front row, with Deon Fourie, Gerhard Steenekamp and Thomas du Toit starting, while Malcolm Marx, Ox Nche and Wilco Louw were named among the replacements.
The changes paid off, particularly after the break, but the Springboks made an immediate impact through their starting pack.
A powerful driving maul laid the foundation for the opening try in just the second minute. South Africa moved the ball wide and Jesse Kriel finished the move to give the hosts an early lead.
New Zealand gradually found their rhythm and tested the Springboks with their attacking game. South Africa's scrambling defence initially stood firm, but the All Blacks eventually found a way through.
Will Jordan beat his man on the outside before feeding Cam Roigard, who finished the move to bring New Zealand level.
Kolbe restored South Africa's advantage with a penalty in the 19th minute before the Springboks extended their lead through Damian de Allende.
Once again, the driving maul provided the platform. After sustained pressure, De Allende managed to stretch over the line as the home side began to gain control.
The All Blacks responded again before half-time. Ardie Savea created space from a line-out and the ball was moved wide, allowing Damian McKenzie to finish in the corner.
South Africa then turned to their replacements earlier than expected, with Nche and Marx introduced in the 36th minute. Marx immediately made his presence felt at the breakdown as the Springboks regained an advantage up front.
Captain Siya Kolisi eventually powered over after several phases to score South Africa's third try and give the hosts a 24-14 lead at half-time.
Kolbe keeps Boks ahead after All Blacks fightback
Kolbe's boot became increasingly important in the second half.
The Springbok wing kicked two penalties inside the opening 11 minutes after the interval, extending South Africa's advantage to 16 points and forcing the All Blacks to chase the game.
New Zealand refused to go away, however, and began to build pressure as South Africa's lead came under increasing threat.
In the 66th minute, Leroy Carter was put into space down the touchline and raced away to score the All Blacks' third try.
Kolbe responded with another penalty to restore a 14-point advantage, giving South Africa some breathing room heading into the final stages.
His four successful penalties and three conversions accounted for 18 of the Springboks' 33 points, while his contribution was not limited to goal-kicking. He also produced important moments in attack and defence throughout the contest.
That proved particularly valuable as New Zealand mounted one final assault.
Springboks survive nervy final stages
Ardie Savea gave the All Blacks fresh hope when he scored in the 77th minute, cutting the deficit to seven points.
The pressure intensified when Lood de Jager was sent to the sin bin for a high tackle, leaving the Springboks to defend their lead with 14 players.
New Zealand had an opportunity to force the issue, but South Africa's defence held firm in the closing moments to secure a vital victory.
Marx was arguably the most influential player off the bench, repeatedly disrupting the All Blacks at the breakdown. Eben Etzebeth also made a major contribution by disrupting New Zealand's line-out throughout the match.
Thank you for the battle @bokrugby and ngā mihi to everyone who tuned in from far and wide 🖤🤍

But the man of the match award went to Kolbe, whose accuracy from the tee ensured that the Springboks had enough breathing room whenever the All Blacks threatened to close the gap.
South Africa now head to Johannesburg with the series level and momentum restored after last week's defeat at Ellis Park.
They will face the All Blacks at FNB Stadium next weekend knowing another victory would put them within one Test of claiming the series, before the final match in Baltimore on 12 September.
Match details
South Africa 33-26 New Zealand
South Africa scorers: Tries: Jesse Kriel, Damian de Allende, Siya Kolisi. Conversions: Cheslin Kolbe 3. Penalties: Cheslin Kolbe 4.
New Zealand scorers: Tries: Cam Roigard, Damian McKenzie, Leroy Carter, Ardie Savea. Conversions: Ruben Love 3.
Yellow card: Lood de Jager (South Africa, 80') for foul play, high tackle.
Referee: Angus Gardner (Australia).