England were denied in their quest for a first Test win of the winter, finishing two wickets short of forcing a victory in the final Test against New Zealand, who clung on to a 1-0 series win.
In an incredible display of resilience, New Zealand tailenders Ish Sodhi (56no off 168 balls) and Neil Wagner (seven off 103) survived the final 100 minutes of the day, before Wagner's wicket and bad light brought a thrilling Test to a close.
The visitors threw everything at Sodhi and Wagner in that final hour and a half, including a barrage of short-pitched bowling from the quicks and close catchers crowding the bat for the spinners - numerous edges, prods and pokes all fell agonisingly out of reach of England fielders.
Stuart Broad had earlier raised hopes of a first England Test win away from home in 13 when he struck with the first two balls of the day, but the brave batting of the New Zealand lower order, as well as vital contributions from Tom Latham (83) and Colin de Grandhomme (45) ultimately helped the hosts hold on and clinch a first home series win over England since 1984.
The tourists will rue a couple of dropped chances; James Vince put down Ross Taylor on six, at third slip, but, while that wasn't too costly - Jack Leach claiming him as his first Test victim seven runs later - Mark Stoneman's misses off De Grandhomme on six and Sodhi on nought were.
Both were admittedly tough chances but, with the pair combining for 265 balls faced, they proved match-defining misses.
Earlier, England had got off to the perfect start as Broad (2-72) picked up two wickets with the first two balls of the day. Jeet Raval (17), having gutted it out so admirably the previous evening to help see New Zealand to 42-0 overnight, flicked nothing more than a half-volley loosener straight to Stoneman at midwicket.
Broad then found himself on a hat-trick as he claimed the key wicket of captain Kane Williamson immediately - a beauty of a delivery taking the outside edge through to Jonny Bairstow; Williamson's first ever golden duck.
Taylor saw off the hat-trick ball, but should have been claimed by Broad a couple of overs later, only for Vince to put him down. To Vince's relief, the veteran Kiwi batsman gifted Leach (2-61) his first Test wicket soon after - top-edging a sweep to Alastair Cook, who had just been moved to short backward square-leg for precisely that shot.
It wouldn't be the only questionable shot selection to result in a New Zealand batsman's dismissal, with Henry Nicholls (13) driving James Anderson (1-37) loosely to Cook at slip and BJ Watling (19) falling in a similar manner to Taylor, lazily flicking Mark Wood (2-45) to short backward square.
England's hopes of victory were raised further when Latham, who had batted beautifully during his 207-ball stay at the crease, became Leach's second victim, falling to his favourite sweep shot - Vince running in from the deep to take a brilliant diving catch.
But, Stoneman's missed chances - putting down De Grandhomme with one that only just carried to him at cover, and a sharp chance off Sodhi at silly point - allowed New Zealand to get to tea just the six wickets down, rather than seven or eight.
England claimed the second new ball two overs before the interval but, with minimal swing on offer in comparison to other new balls taken in the Test, prizing out the Black Caps lower order proved beyond them.
De Grandhomme fell 12 overs into the final session, taking on the short ball one time too often, holing out at deep fine-leg off Wood, but Sodhi and Wagner stubbornly withstood everything England had to throw at them in the final hour and a half to earn New Zealand a famous series win.