Pakistan became the first side to lose nine wickets in the final session of a Test as New Zealand completed a 2-0 series win in Hamilton.
The tourists slumped from 131-0 to 230 all out inside 25 overs en route to a 138-run defeat in the second Test.
Neil Wagner took three wickets in six balls to seal the Kiwis' first series victory over Pakistan since 1985.
Openers Sami Aslam and Azhar Ali, who made 91 and 58 respectively, were the only Pakistan batsmen to reach 20.
New Zealand won the first Test in Christchurch by eight wickets after bowling Pakistan out for 133 and 171.
Pakistan slipped from second to fourth in the International Cricket Council Test rankings, ↗ with England - currently on tour in India - moving up to second.
New Zealand climbed one place to sixth.
Subscribe to the BBC Sport newsletter ↗ to get our pick of news, features and video sent to your inbox.