Kane Williamson hit a sublime unbeaten century to lead New Zealand to a thrilling two-wicket win over Sri Lanka off the final ball of the first Test.
Williamson's 121 not out saw the Black Caps chase down 285 on a rain-shortened fifth day in Christchurch.
The hosts needed eight off the final over and scrambled a bye from the last ball to seal a dramatic win.
Defeat ended Sri Lanka's hopes of reaching the World Test Championship final in June.
Sri Lanka needed to sweep New Zealand 2-0 in this series to qualify, so India will now face Australia in the final at The Oval.
Williamson's 121 not out saw the Black Caps chase down 285 on a rain-shortened fifth day in Christchurch.
The hosts needed eight off the final over and scrambled a bye from the last ball to seal a dramatic win.
Defeat ended Sri Lanka's hopes of reaching the World Test Championship final in June.
Sri Lanka needed to sweep New Zealand 2-0 in this series to qualify, so India will now face Australia in the final at The Oval.