The All Blacks scored two late tries to beat South Africa by 29-22 at the National Stadium in Soweto to seal the Tri-Nations rugby series title.
The All Blacks dominated territory and possession in the first half but the Springboks led 16-14 at half time.
The home team still led 22-14 with less than 10 minutes remaining.
However, New Zealand captain Richie McCaw and Israel Dagg scored two tries in the final three minutes.
It's the first win for the All Blacks in Johannesburg since 1997. The team had three losses to South Africa last year.
The result means the All Blacks are the Tri-Nations champions for the 10th time.
First-five Dan Carter has now surpassed England's Jonny Wilkinson as the highest points scorer in rugby Tests, with 1113 points - two more than Wilkinson.