Kane Williamson and Henry Nicholls combined to give New Zealand a surely pivotal 198-run lead over Pakistan after Yasir Shah's record-breaking turn on the fourth day of the third Test.
The Black Caps began the day on 26-2, trailing Pakistan by 48 runs, but they came through an action-packed first session on Thursday to close on 272-4 and keep their hopes of a series win alive in the decisive final match.
History was made in a frantic morning as Yasir (2-107) brought up his 200th Test wicket in record time - 33 matches - bowling to William Somerville, seemingly leaving New Zealand deep in trouble.
But Pakistan's progress slowed with a spate of frustrating reviews and Williamson (139 not out) and Nicholls (90 no) battled through to lunch before kicking on in Abu Dhabi.
Even with that sublime unbeaten partnership of 212, there remains plenty of work for New Zealand to do to win on the final day, as all 10 Pakistan wickets must fall, but what appeared a probable defeat now looks to have been averted.
Yasir Shah becomes the fastest to 200 Test wickets.— ICC (@ICC) December 6, 2018
He traps nightwatchman Somerville in front and reaches the landmark in just his 33rd Test!
Congratulations!#PAKvNZ LIVE https://t.co/cS8PI6iRJl pic.twitter.com/mdtFVLaqOZ
Yasir made his breakthrough early as he removed Somerville (4) lbw, reaching the landmark double-century of Test wickets in three matches fewer than previous record-holder Clarrie Grimmett.
And even the arrival of the destructive Ross Taylor (22) could not initially wrestle back control from Pakistan as the big-hitting batsman fell into a trap set by Shaheen Afridi, picking out Bilal Asif at deep square leg.
That brought Williamson and Nicholls together and New Zealand belatedly showed some resilience.
Nicholls clung to his wicket in spectacular fashion, surviving one review as he appeared to have edged behind, dodging another that would have seen him out lbw to Yasir and then using one of his own to escape once more.
That nervy start gave way to some more assured batting and the tone was set for the rest of the day. Pakistan struggled to get to grips with an effective partnership and Williamson drove a pair of fours off Hasan Ali to bring up his century.
A brilliant 19th Test century for Kane Williamson.— BLACKCAPS (@BLACKCAPS) December 6, 2018
154 balls with 12 boundaries. The NZ captain & Henry Nicholls (51*) have the lead out past 120 with six wickets in hand on day 4 of the deciding Test #PAKvNZ pic.twitter.com/NYQ4nixMCG
A couple of tough Yasir drops ensured the Black Caps had complete control by tea, although some smart fielding subsequently kept the scoring down for a time before a new ball became available.
However, Sarfraz Ahmed bizarrely opted not to take the ball and instead watched his bowlers spend the last hour toiling in front of the determined batsmen.
|Sancho ´guaranteed´ to stay at Borussia Dortmund|
|Kerber stunned by teenager Potapova in Roland Garros opener|
|This party is for everyone! Emotional Parejo leads Valencia in Copa celebrations|
|Cleary in for New South Wales, Maloney misses out|
|Emery had to convince Arsenal stars to care about Europa League|
|Frizell suffers Origin scare, Addo-Carr at the double for Storm|
|Leonard´s experience made a difference, admits Antetokounmpo|
|Pochettino fears Kane call could decide Champions League final|
|Giannis: This is just the start for the Bucks|
|Best player in the NBA? Leonard focused on Raptors´ success|
|Manchester United 2 Bayern Munich 1 (1998-99) - Where are they 20 years on?|
|Manchester United 1998-99: The best wins of Ferguson´s treble from Turin to Barcelona|
|Yankees sweep double-header, remain atop AL East|
|Tuchel´s PSG extension - Opta numbers help to explain new deal|
|Herring beats Ito to claim WBO super-featherweight title|
|Three takeaways from Raptors´ historic win over Bucks|
|Raptors defeat Bucks to earn first ever Finals berth|
|MLS Review: Rooney salvages draw for DC, Union beaten|
|Liverpool want to emulate Man City dominance – Henderson|
|Marcelino revels in ´happiest day´ after Copa del Rey success|
|Kovac praises Bayern turnaround after completing double|
|Red Sox´s Devers robbed of home run by Minute Maid Park girder|
|Warriors´ Iguodala considering retirement|
|Na leads at Colonial, Spieth two shots back|
|Valverde vows to fight on at Barcelona|
|I can be one of the best in the world - Zverev defiant after return to winning ways|
|Finland to face Canada in final after downing Russia|
|Valverde not to blame for Barcelona´s Copa defeat, says president Bartomeu|
|Rummenigge reaffirms Bayern Munich´s Kovac stance after DFB-Pokal triumph|
|Barcelona season bittersweet after Copa loss, says Pique|
|Ribery proud after making victorious Bayern Munich farewell|
|Centurion Smith unfazed by England boos|
|Warrington battle past Wigan as Giants humiliate Hull|
|Barcelona 1 Valencia 2: Valverde pressure increases as Catalans denied historic Copa win|
|Leinster retain Pro14 title to spoil Hogg farewell|
|F1 Raceweek: Hamilton hopes rain will not scupper likely Monaco glory|
|Bayern Munich 3 RB Leipzig 0: Lewandowski´s brace helps secure domestic double|
|Crusaders march on as Sharks enjoy derby delight|
|Champions League failure would be ´huge disappointment´ for Atalanta - Gasperini|
|Lennon offered full-time Celtic job after treble-treble|
|Paris Saint-Germain must pull together in one direction to improve - Tuchel|
|Toulon end Castres´ reign, La Rochelle and Montpellier seal play-off spots|
|Coutinho, Semedo & Arthur start Copa del Rey final after injury problems|
|Yastremska shrugs off Garcia to claim maiden clay title|
|Gasly handed Monaco grid penalty|
|Without him, I would have one title – Hamilton dedicates Monaco pole to Lauda|
|Neymar, Mbappe and how to help Kimpembe: Tuchel´s Paris Saint-Germain to-do list|
|Outgoing Ribery and Robben on Bayern bench as Neuer starts DFB-Pokal final|
|Carapaz takes Maglia Rosa after climbing to stage 14 win|
|Injured Keita named in Guinea´s provisional AFCON squad|
|Wiesberger leads at Made in Denmark after Schwab struggles|
|Edouard brace fires Celtic to historic treble-treble|
|Paire picks off Auger Aliassime in Lyon final|
|Leclerc demands Ferrari answers and prays for rain after Monaco farce|
|Putintseva claims first WTA title at Nuremberg Cup|
|Gattuso: Champions League not imperative for Milan job prospects|
|Mancini confident of taking Italy into a new era|
|Experience will serve Inter well in ´cup final´ - Spalletti|
|Hamilton beats out Bottas as Leclerc suffers Monaco nightmare|
|Reynolds hurt but Rabbitohs still too strong for Wests Tigers|
|Ronaldo rested before Allegri heads for the beach|
|Nagelsmann can establish Leipzig at the top - Rangnick|
|Europa League win would cap ´dream´ Chelsea season, says Emerson|
|Rebels have cause to celebrate, Waratahs hurt by Jaguares|
|Tuchel extends PSG contract to 2021|
|Marquinhos ´didn´t understand´ Mbappe´s PSG exit hint|
|Van Dijk out to improve on ´nuts´ Barca clash in Champions League final|
|Wood worry for England ahead of World Cup|
|Kompany takes Manchester City academy coach to Anderlecht|
|Terry will manage Chelsea before Lampard does, says Wise|