Mohammad Rizwan smashed 89 as Pakistan avoided being swept in the Twenty20 series against New Zealand, despite a late wobble in their run chase in Napier.
Opening the batting, Rizwan hit 10 fours and three sixes in his maiden international half-century in the format, helping the tourists surpass the home team's total of 173-7 with four wickets to spare in the third and final game.
Mohammad Hafeez contributed 41 to a second-wicket stand worth 72 and Pakistan appeared to be cruising at one stage, only to lose wickets in the closing overs.
Tim Southee dismissed Faheem Ashraf and Shadab Khan – continuing to stand in as captain in the absence of injured Babar Azam – in successive deliveries in the 19th over, while Rizwan departed to Kyle Jamieson to leave the score at 171-6.
However, left needing three from the final three balls, Iftikhar Ahmed sealed victory in style with a huge six. New Zealand were hampered by the absence of Ish Sodhi, the leg-spinner only sending down one over before suffering an injury in the field.
A six and a win
Iftikhar Ahmed pulls a short ball from Kyle Jamieson for a six and Pakistan seal a tense four-wicket win!
How good was that run-chase? pic.twitter.com/SZ6ycJNfjf— ICC (@ICC) December 22, 2020
Devon Conway had earlier helped the Black Caps post what looked to be a competitive total at the halfway stage, hitting seven fours and a solitary six as he made 63 from 45 deliveries.
Tim Seifert made 35 at the top of the New Zealand order, while Glenn Phillips (31) shared a 51-run partnership with Conway for the fourth wicket.
Faheem Ashraf claimed 3-20 during his four overs, including dismissing home skipper Kane Williamson for one, bowled off an inside edge to a short delivery.
There were two wickets apiece for Shaheen Afridi and Haris Rauf, though both went at an economy rate above 10 an over in an innings that included 16 fours and six sixes.
The two nations now switch their focus quickly to Test cricket, with the series opener getting under way at Mount Maunganui on Boxing Day.
Pakistan confirmed on Monday that Babar will not recover from a broken thumb in time to play, though the batsman may yet feature in the second and final Test, which takes place in Christchurch.