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.
|Bellamy joins former Man City team-mate Kompany at Anderlecht|
|Hummels showed courage to return to Dortmund - Zorc|
|Del Potro suffers another cruel injury blow|
|Sarri: Chelsea had to accommodate Hazard|
|Ecuador v Chile: Gomez not to blame for ´crisis´, claims FEF boss Egas|
|Ferrari to meet F1 officials for review of Vettel penalty|
|Raul, Morata and Courtois - Llorente the latest player to cross Madrid divide|
|Imperious Warner smashes highest score of World Cup|
|Goga Bitadze laughs off Zion Williamson media snub|
|Sarri out to prove sceptics wrong|
|Nadal books in for Wimbledon preparation at Hurlingham|
|Juventus ´love´ Pogba and want Rabiot - Paratici|
|Hartley left out of England training squad|
|Manchester City confirm Zinchenko extension|
|Atletico agree deal to sign Llorente from rivals Madrid|
|Ten Hag extends Ajax contract|
|Juventus appointment ´crowning moment´ of Sarri´s career|
|Juve boss Sarri wants to help Ronaldo break Serie A record|
|NBA Draft 2019: Zion Williamson backed to become ´world´s best´|
|Khan pondering boxing retirement|
|Juventus sell Orsolini to Bologna for €15m|
|Only Neymar knows his future - Douglas Costa|
|Championship fixtures 2019-20: Derby start at Huddersfield, Fulham visit Barnsley|
|FFA outlines plan for national second division|
|Berizzo: Paraguay dropped two points against Argentina|
|All change in Serie A: The task awaiting Sarri, Conte, Giampaolo and Fonseca|
|Rumour Has It: Real Madrid to offer €130m and James or Bale for Neymar|
|Scherzer overcomes broken nose to inspire Nationals|
|Messi: We´re convinced we will beat Qatar|
|A football genius and Lionel Messi – Newcastle poke fun at Argentina great and hail Almiron|
|Argentina lucky to be alive at Copa America – Scaloni|
|Mexico 3 Canada 1: Guardado brace preserves Martino´s 100 per cent record|
|Lightning´s Nikita Kucherov caps off season with Hart Trophy|
|Argentina 1 Paraguay 1: Messi scores but Copa America exit looms|
|World Rugby scraps Nations Championship plans|
|Sanchez left with ´bad taste´ after Qatar´s loss to Colombia|
|Salah among world´s best three players – Elmohamady|
|NBA Draft 2019: Three players with boom or bust potential|
|Colombia 1 Qatar 0: Zapata heads in late winner|
|NBA Draft 2019: Five second-round sleepers|
|NBA Draft 2019: Three players who will be selected too early|
|NBA Draft 2019: Six things we learned from Zion Williamson´s interview|
|NBA Draft 2019: What will Warriors do with pick 28?|
|Injured Del Potro withdraws at Queen´s, Lopez into last eight|
|We´ll wait and see - Jorginho agent not ruling out Juventus move|
|Women´s World Cup Review: Argentina and VAR dump Scotland out as England top Group D|
|Lopez strongly denies match-fixing allegations|
|Defending champion Coric comes through Halle thriller|
|Australia v Bangladesh: Carey and co target dangerman Shakib|
|Euro U21s Review: Fornals stunner gets Spain off the mark, Poland shock Italy|
|Argentina make Women´s World Cup history with stunning Scotland comeback|
|Sevastova cruises past Tomljanovic at Mallorca Open|
|Celtic could face Nomme Kalju or Shkendija in Champions League qualifying|
|New Zealand skipper Williamson hails De Grandhomme innings|
|Inter complete Politano deal|
|Coutinho unsure over Barcelona future|
|Luis Enrique grateful for privacy after leaving Spain role|
|Bayern looking forward to signing Sane, claims Lewandowski|
|Every win will be yours – Spain captain Ramos pays tribute to Luis Enrique|
|Masterful Williamson nudges South Africa closer to World Cup exit|
|Unfortunate Del Potro suffers another knee injury|
|F1 Raceweek: Vettel under pressure - French GP in numbers|
|Police arrest man on suspicion of manslaughter over Sala death|
|Baines signs Everton extension|
|AC Milan appoint Giampaolo as head coach|
|Is Mats Hummels still an elite defender?|
|Barcelona to face Napoli in first LaLiga Serie A Cup|
|Pant cleared to join India squad at World Cup after Dhawan blow|
|Ancelotti wants James Rodriguez, confirms Napoli chief De Laurentiis|
|Uruguay v Japan: Laxalt expects tough clash in Porto Alegre|