David Bedingham scored his maiden test century as South Africa handed New Zealand a victory target of 267 on a tricky pitch on the third day of the second and final test at Hamilton's Seddon Park on Thursday.
Bedingham's 110, mostly scored in a 98-run partnership with Keegan Petersen for the fifth wicket, drove the inexperienced Proteas to 235 all out to give them a fighting chance of levelling up the series at 1-1.
New Zealand openers chipped 40 runs off the target in the last hour but Devon Conway was dismissed lbw for 17 by spinner Dane Piedt in the final over of the day.
Conway's fellow opener Tom Latham will resume on 21 not out on Friday as the Black Caps look for the 227 runs they need to secure a first series win over South Africa in 72 years of trying.Debutant paceman Will O'Rourke, the only New Zealander with less experience than most of the South Africans, took five for 34 as the last six Proteas wickets fell for 33 runs but the day belonged to Bedingham.