Kyle Jamieson struck early to have Pakistan 30 for one at stumps after a Kane Williamson century anchored New Zealand's 431 on day two of the first Test at Mount Maunganui on Sunday.
Abid Ali was not out 19 with nightwatchman Mohammad Abbas yet to score.
Shan Masood was dismissed for 10 when he poked at a Jamieson ball straying down the leg side and was well caught by wicketkeeper BJ Watling.
It was an uncomfortable stay for Masood who had earlier been dropped at third slip by substitute Daryl Mitchell, who was on the field while Neil Wagner continued to receive treatment after being hit by a Shaheen Afridi yorker while batting.
New Zealand, having started the day at 222 for three, added a further 209 before Wagner was the last man out.
The innings was headlined by Williamson's 129, his 23rd Test century, with sizeable contributions from Watling (67) and Henry Nicholls (56) to go with Ross Taylor's 70 on the first day.
It was a commendable performance by New Zealand after being sent into bat on a green wicket and with Afridi and Mohammad Abbas making life difficult with swing and seam on the first day.
Although there was not the same movement on day two, the drying pitch started to show signs of turn which brought spin into play with Yasir Shah taking three wickets including the prized scalp of Williamson.
Nicholls, who had partnered Williamson in a 133-run stand for the fourth wicket, was the first to fall, bizarrely departing the field when, if he had argued his case, would have been allowed to stay.
He was given out caught off the gloves, and after consulting with Williamson he decided not to seek a review when replays later showed the ball hit his forearm and did not brush either glove or bat.
Williamson, a model of patience and concentration, needed 261 balls to bring up his century, his slowest Test hundred, but once that milestone passed he picked up the pace and needed only 36 more deliveries to get to 129.
The introduction of Yasir Shah brought the end of the New Zealand captain.
With his third ball, the legspinner found enough turn to catch the edge of the bat and Haris Sohail took a smart one-handed catch.
Watling, who scored a double century against England on the same Bay Oval wicket a year ago, took over as the batting mainstay.
He featured in a 36-run stand with Mitchell Santner (19) and 66 with Jamieson (32).
After Tim Southee's nine-ball duck, Watling and Wagner put on 33 before Watling nicked a wide Afridi delivery to Yasir Shah at gully.
It was a productive day for Shah who also took the wickets of Southee and Wagner (19) to return figures of three for 113 while Afridi took four for 109.