Captain Kane Williamson's patient unbeaten century led New Zealand to a tense four-wicket victory over South Africa in a low-scoring Cricket World Cup match at Edgbaston on Wednesday.
Chasing 242 to win a match reduced to 49 overs a side by rain, New Zealand looked set to comfortably reach the target with Martin Guptill and Williamson at the crease.
But Guptill, on 35, was dismissed hit-wicket trying to pull Andile Phehlukwayo to the boundary and Chris Morris bowled a fiery spell to get rid of Ross Taylor and Tom Latham, both caught behind for one run.
Morris also had Jimmy Neesham caught at slip for 23 to leave New Zealand struggling at 137-5, but Williamson and Colin de Grandhomme (60) shared a composed 91-run partnership to ease New Zealand nerves.
South Africa had a golden opportunity to run Williamson out after a mix-up with De Grandhomme left the Kiwi skipper well short of his ground but David Miller fluffed the chance, whipping the bails off without collecting the ball.
De Grandhomme fell before the end but Williamson reached his century with a six in the final over and guided New Zealand to their fourth win of the tournament with three balls to spare.
"It was nice to be there at the end," said Williamson who finished unbeaten on 106.
"It's just trying to do the job as well as you can, I was fortunate I was able to do it today. There were a number of contributions that were so vital.
"It was one of those surfaces that provides a great spectacle. It could have gone either way."
South Africa's batsmen apart from Hashim Amla and Rassie van der Dussen failed to build on starts after being put into bat in the face of a disciplined bowling effort from the Kiwis.
Amla was bowled for 55 by Mitchell Santner but Van der Dussen's unbeaten 67 off 64 balls gave the South Africans a respectable total to defend.
"We were aiming 260-270... we fell short," South Africa captain Faf du Plessis said.
"We also had a lot of stop-start, stop-start innings but Kane batted through for the hundred and that was the game changer.
"We did everything we could, we threw ourselves around. The energy was unbelievable. Sure, there were some times that we dropped intensity. But Kane took it away from us."
The result left South Africa, who have won only one match, virtually out of the running for a semi-final spot while New Zealand kept their unbeaten run intact to move to the top of the standings with four wins in five games.