Mitchell Santner scored his maiden Test century and then grabbed three quick wickets to leave England battling to avoid defeat going into the final day.
England were struggling on 55-3 at the close of play on the fourth day of the first Test at Bay Oval on Sunday, still 207 runs behind New Zealand's first innings of 615-9 declared.
Joe Denly was on seven, while Joe Root will join him on Monday after nightwatchman Jack Leach was caught for a duck off Santner with two balls remaining in the day's play.
Left-arm spinner Santner had earlier removed openers Dom Sibley for 12 and Rory Burns for 31. He finished the day with figures of 3-6 off 8.4 overs.
"It's not going to be easy to take seven wickets," Santner said as New Zealand bid to take a 1-0 lead before the second match of the two-Test series starts in Hamilton on November 29.
"The ball is getting older and getting softer. We just have to stay in the areas for longer and go from there."
Captain Kane Williamson had closed New Zealand's first innings with a 262-run lead with wicketkeeper BJ Watling scoring his first Test double century.
Watling was eventually dismissed for 205 and, having batted for just over 11 hours, he did not take the field for the first hour of England's second innings with Tom Latham taking the gloves temporarily.
The 34-year-old Watling, however, took a sharp catch when he did return to dismiss Sibley off Santner. The catch was a milestone in itself, with the last 101 wickets taken by New Zealand at home all falling to pace bowlers.
Santner struck again with less than three overs remaining when Burns mistimed a sweep and spooned a catch to Colin de Grandhomme at square leg, bringing Leach to the wicket before he fell in the final over.
The 27-year-old Santner had earlier also scored his maiden Test century as he combined with Watling for a 261-run partnership, a New Zealand record for the seventh wicket, as the hosts dominated the fourth day's play.
"It was nice to get a hundred as it set the team up for a good score," Santner said.
"I think the way me and BJ built the partnership, we knew that if we could bat a long time and get a bit of a lead ... we knew the pitch was going to get harder to bat on.
"It's probably a little bit up and down with those cracks so we just knew that we had to keep building the partnership and keep going."