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.
|Shakhtar Donetsk 1 Lyon 1: Fekir fires French side through in Group F|
|Benfica 1 AEK Athens 0: Grimaldo sends hosts out on a high|
|Young Boys 2 Juventus 1: Hoarau double seals famous victory|
|Manchester City 2 Hoffenheim 1: City through as group winners after Sane brace|
|Ajax 3 Bayern Munich 3: Kovac´s men clinch top spot in Amsterdam thriller|
|Valencia 2 Manchester United 1: Jones scores own goal as Red Devils limp through|
|Solari accepts responsibility for Madrid´s heaviest home defeat in Europe|
|WATCH: Rooney backs Rocky ahead of Canelo showdown|
|McLaren to collaborate with Team Bahrain Merida|
|Las Vegas to host 2020 NFL Draft|
|Stade teenager tragically dies after neck injury|
|Cahill may need to leave Chelsea if he wants to play, admits Sarri|
|Viktoria Plzen 2 Roma 1: Chory winner takes hosts into Europa League|
|Real Madrid 0 CSKA Moscow 3: Champions humiliated at Bernabeu|
|Sarri condemns ´disgusting´ Sterling abuse|
|Hansen hails outstanding Ben Smith ahead of Pau switch|
|Foden, Sterling start for Manchester City v Hoffenheim|
|Sky decision will not affect us in 2019, insist Froome and Thomas|
|Al Ain 3 Team Wellington 3 (aet, 4-3 on penalties): Shootout heartbreak for semi-pros in Club World|
|Jackson to remain Ravens´ starting QB despite Flacco return|
|Rams headline 2019 NFL International Series home teams|
|Rams headline International Series home teams for 2019|
|Atlanta want ´exciting football´ from new boss amid Bielsa links|
|Atlanta still yet to receive ´serious´ bid for ´Bale-like´ Almiron|
|Tottenham v Manchester United to be held at Wembley|
|Matip facing six weeks out with fractured collarbone|
|I´ve had quite a lot of calls – Brailsford encouraged by Team Sky interest|
|Afghanistan Football Federation president provisionally banned by FIFA|
|Knee injury rules Huddersfield´s Mooy out of Asian Cup|
|Arnautovic tipped for Man United move by Austria team-mate Sabitzer|
|Arsenal legend Adams to become RFL president|
|My love for football still burns strong – Toure speaks out amid talk of Premier League return|
|Noble contract extended to 2021|
|Split with Sky is an opportunity, says Brailsford|
|Van der Burgh rolls back the years, two more medals for Hosszu|
|Maitland-Niles praises Sterling for speaking out|
|Life is tough for him right now - Celtic striker Griffiths to take time away from football|
|Froome: Team Sky keen to continue with new partner|
|Emery confirms Koscielny to play against Qarabag|
|Llorente keen on Athletic return|
|I love the guy - Pocock backs under-pressure Cheika|
|Fit-again Ozil in line for Arsenal return against Qarabag|
|Raheem Sterling named Premier League Player of the Month|
|Two more Ligue 1 games postponed due to unrest|
|Pace attack among India´s best ever - Arun|
|Premier League has fostered ´excessive aggression´ among fans, says Scudamore|
|Sharks back Flanagan amid NRL investigation|
|Not good for my recovery! Hoddle delights in Spurs´ Champions League heroics|
|Harris backing Starc to fire in Perth|
|No fears over Atleti´s second-place finish for Simeone|
|Clippers buckled under Raptors pressure - Rivers|
|Icardi: Inter deserved to qualify|
|Team Sky future unclear as Sky opt to end involvement in cycling|
|PSG had to change mentality - Thiago Silva|
|Rockets make change, pick up win over Trail Blazers|
|Everything´s easier when you´ve got Messi – Miranda|
|From George Cross to Arsenal – Montemurro´s rise to make Gunners great again|
|Koulibaly challenges Napoli to win Europa League|
|Raptors star Leonard out against Clippers, may miss matchup with Warriors|
|Butler opens up about heated Timberwolves practice|
|Spurs achieved ´mission impossible´, says Pochettino|
|Dembele stunner pleases Barca boss Valverde|
|Van Dijk lauds ´fantastic´ Alisson|
|Van Dijk´s tackle on Mertens worthy of red card – Ancelotti|
|Klopp ´would have paid double´ for Alisson|
|Klopp: I don´t care about Madrid revenge mission|
|Tension and anxiety got to Inter, laments Spalletti|
|Tuchel hails magnificent PSG as Red Star win seals last-16 spot|
|Mbappe admits frank discussions inspired PSG´s Champions League progress|
|Klopp: Napoli had no answers to outstanding Liverpool|