New Zealand took a 1-0 series lead as they bowled England out for 320 to seal victory by an innings and 49 runs on the final day of the first Test.
The hosts were made to wait until nearly an hour into the last session for the winning moment after Ben Stokes (66) and Chris Woakes (52) had dug in to hit half-centuries.
After Trent Boult and Tim Southee set the platform for success by bowling England out for 58 on the first day, Neil Wagner (3-77) and Todd Astle (3-39) were the standouts on day five, ending with three wickets apiece.
New Zealand will have had hopes of wrapping the game up quickly when Southee (1-86) had Dawid Malan (23) caught at second slip early in the day.
Jonny Bairstow was then dropped on nought, tickling the ball down the legside but the diving BJ Watling was unable to cling on.
The England wicketkeeper was given another life on 21 after a delivery that produced comfortably the worst all-round cricket of the match. Leg-spinner Astle dragged the ball down horribly, Bairstow mistimed it straight to mid on and Boult shelled the simplest of catches.
Bairstow (26) could not make it count though, thumping another Astle long-hop to midwicket where Kane Williamson took a brilliant catch above his head.
Stokes had shown admirable restraint from the off but Moeen Ali came out and was keen to play his shots, advancing to 28 in good time before Boult (3-67) trapped him lbw with the third over of the second new ball, a fine review from Williamson proving the ball brushed the front pad before the bat.
That wicket fell on the stroke of tea and it was not until the final over of the following session that New Zealand struck again.
Stokes, who reached a battling half-century, and Woakes batting diligently to frustrate their hosts.
However, as the session reached its conclusion, the composure Stokes had displayed for much as his innings began to dissipate - a tough innings taking its toll after such a long spell away from Test cricket.
Wagner sensed an opportunity, upping his intensity from an already impressive base and was rewarded as Stokes spooned a catch up to Southee running back from point.
Craig Overton (3) was undone by Astle's beautifully bowled googly soon after the interval and the spinner, who was only brought into the attack for the first time in the 69th over of the innings, continued to cause problems.
It was Wagner who claimed the big wicket of Woakes though, another ferocious bouncer leaping up at his throat and the England all-rounder could only fend it off to short leg as he jumped to try and get on top of the ball.
The final wicket came in the next over, James Anderson (1) hitting Astle straight to mid off to spark exuberant New Zealand celebrations.
England must now regroup before the second Test in Christchurch, where they will look to level the series.
Watch the second Test between New Zealand and England from 10pm, Thursday on Sunshine Golf Cricket.