Captain AB de Villiers calmly guided South Africa to a tense four-wicket victory over New Zealand with one ball to spare in a rain reduced first one-day international at Seddon Park in Hamilton.
De Villiers scored 37 not out and ensured number eight batsman Andile Phehlukwayo (29) kept a cool head as the pair put on 54 runs to overwhelm the 208-run victory target and earn a 1-0 lead in the five-match series.
The visitors, who had looked to be cruising to victory at 117-1 with 14 overs remaining, lost four wickets in 14 balls to slump to 126-5 before Chris Morris helped his captain to a 30-run partnership.
Morris, however, fell with still plenty of work to do on a pitch that had been difficult to score from throughout the entire game.
South Africa needed 22 runs from the final two overs and scored 10 from Trent Boult in the penultimate over which included a six from Phehlukwayo, who then repeated the dose against Tim Southee in the final over.
De Villiers then belted Southee for four off the penultimate ball to clinch the victory.
New Zealand made 207-7 in their innings after heavy rain over the past three days in Hamilton had forced a delay of more than three hours and reduced the match to 34-overs-a-side.
New Zealand struggled for much of their innings particularly up front against tight bowling from Morris, who took the first four wickets as the hosts slumped to 82-4 in the 16th over.
Kane Williamson managed to notch up his 28th one-day international half century as he took on the mantle of anchoring his side's innings, which he did in scoring 59 of his side's 108 runs before he was bowled by Tabraiz Shamsi.
All-rounders Jimmy Neesham (29) and Mitchell Santner (17) took their side through to 156-7, but with less than four overs remaining the hosts looked well short of a competitive target despite the wicket proving to be difficult to score from.
Morris, who had figures of 4-24 from his first five overs, however, was then taken apart by Colin de Grandhomme (34 not out) and Southee (24 not out) in his final two.
De Grandhomme and Southee blasted 51 runs from 23 balls, including smashing 38 runs from Morris's final 12 deliveries to blow out his figures to 4-62 from seven overs.
The second match is at Hagley Oval in Christchurch on Wednesday.