Nathan McCullum hit three sixes in the final over to give New Zealand a four-wicket win over Sri Lanka in a rain-affected second one-day international in Hambantota.
Set a target of 198 in 23 overs after a delay of more than five hours, New Zealand opener Tom Latham's ODI-best 86 off 68 balls kept the tourists in contention.
Latham and Luke Ronchi (49), who put on 93 for the fifth wicket after coming together at 68-4, both fell to Sri Lanka seamer Nuwan Kulasekara (4-34) in the 20th over.
New Zealand needed 32 off the final 12 balls and 20 from the last over; a task they achieved thanks to McCullum's big hitting.
Sri Lanka captain Angelo Mathews entrusted the final over to spinner Rangana Herath (0-43) and, initially, that looked a sound decision as Jimmy Neesham (5no) mustered only three runs from the first two deliveries.
But, with 17 required from four balls, McCullum (32no) launched a six over extra cover, followed up with a four in the same region and then finished off the game with successive straight sixes.
Tillakaratne Dilshan (55no) and Kumar Sangakkara (71no) had earlier shared a century partnership for the second wicket to lead Sri Lanka to 117-1 in 20.4 overs when the umpires took the players off due to the threat of lightning.
Conditions eased in time for a 23-overs game, Dilshan (55no) and Sangakkara (71no) extending their stand to 126 to take Sri Lanka to a final total of 138-1.
The Duckworth-Lewis calculation added 60 runs to Sri Lanka's innings - but still it was not enough.
The opening game of the three-match series at the same venue was abandoned due to rain and the decider takes place in Dambulla on November 16.