South Africa secured the New Zealand Test series 1-0 but failed to put away the dogged hosts in the final match Tuesday and had to settle for another draw.
A heroic century by 21-year-old Kane Williamson rescued the Black Caps in the final match of the three-Test series after a sensational bowling performance by Morne Morkel had reduced New Zealand to 83-5.
The Proteas take the series courtesy of victory in the second match in Hamilton, after the rain-affected first match ended in a draw.
In a dramatic final session in Wellington, New Zealand lost only one further wicket as Williamson held firm in a defiant 80-run stand for the sixth wicket with the South Africa-born Kruger van Wyk, following that with an unbeaten 37-run partnership with Doug Bracewell.
The South African fieldsmen grounded multiple chances helping New Zealand reach 200-6 at the close after South African captain Graeme Smith set an imposing 389-run target.
Morkel ripped out the New Zealand top order to finish with career-best figures of 6-23 which won him the man-of-the-match award over Williamson.
Williamson, batting at four in place of the injured skipper Ross Taylor, survived a painful strike in the groin and at least four edges behind the stumps including a low catch claimed by Alviro Petersen at point.
Television replays showed the ball may have hit the ground first and the decision went in favour of the batsman, who at that stage was on seven but went on to post his second century from 228 balls, spending 327 minutes at the crease.
Bracewell had scored a duck in his previous three innings in the series but played confidently as he supported Williamson to be 20 not out after he was dropped by de Villiers on eight.
South Africa had resumed the day at 75 without loss and and raced to 189-3 before declaring with de Villiers belting 68 and JP Duminy unbeaten on 33.
Brownlie faced 18 balls without scoring before launching into de Lange and taking 14 off one over, including three boundaries, but he was to add only one more run before Morkel struck again.
Home skipper Ross Taylor, who suffered a broken arm when hit by Morkel on the fourth day, underwent surgery and will be sidelined for at least four weeks.
Source: AFP Global Edition