Kane Williamson seized New Zealand's run chase by the scruff of the neck to lead his side to an improbable seven-wicket victory against Bangladesh on the final day of the first Test at the Basin Reserve on Monday.
The New Zealand skipper scored 104 not out, reaching his century from 89 balls, and combined with Ross Taylor (60) in a 163-run partnership as the hosts reached 217 for three with 17.2 overs remaining in the match.
Henry Nicholls was on four when Williamson hit the winning run, a single out to deep mid-wicket.
The joy of victory, however, was tempered by an incident earlier in the day when Bangladesh captain Mushfiqur Rahim suffered a sickening blow to the head from a Tim Southee bouncer and was taken to hospital by ambulance.
Mushfiqur, who scored 159 in the first innings, had been battling to save his side after they had slumped to 96-5 having taken a 56-run lead into their second innings.
He did not return and his side eventually made 160 for nine, leaving New Zealand a victory target of 217 in 58 overs.
Bangladesh had scored 595-8 declared in their first innings and looked to be in charge of the game from early on the second day.
A draw, however, had been the most likely result until late on the fourth day when the hosts, who replied with 539, took three late wickets to give themselves a sniff of the unlikely victory.
They capitalised early on the fifth day, dismissing first innings double centurion Shakib Al Hasan for a five-ball duck.
Once Shakib fell, the onus rested with Mushfiqur and Sabbir Rahman to bat out the rest of the day and stave off a potential morale-sapping defeat.
Their resistance, however, effectively ended when Mushfiqur was taken to hospital.
Sabbir threw away his wicket on 50 and despite a hobbling Imrul Kayes returning after retiring hurt on 24 on Sunday, New Zealand ran through the tail.
While Bangladesh took early wickets to reduce New Zealand to 39-2, Williamson and Taylor took control with the captain hitting three successive boundaries in the final over before tea from Taskin Ahmed to signal his intentions.
The hosts began the final session on 91-2, needing a further 126 runs in 38 overs to clinch victory.
Williamson then took the game totally away from Bangladesh with a superbly controlled attacking innings after tea, racing through to his 15th Test century after he lost Taylor with victory in sight.
The second game of the two-match series starts on Jan. 20 at Christchurch's Hagley Oval.
Bangladesh 1st innings 595-8 declared
New Zealand 1st inns 539
Bangladesh 2nd inns (overnight 66-1)
Tamim Iqbal b Santner 25
Imrul Kayes not out 36
Mominul Haque c de Grandhomme b Wagner 23
Mahmudullah c Watling b Wagner 5
Mehedi Hasan run out 1
Shakib Al Hasan c Williamson b Santner 0
Sabbir Rahman c Watling b Boult 50
Mushfiqur Rahim retired hurt 13
Taskin Ahmed b Boult 5
Kamrul Islam c de Grandhomme b Southee 1
Subashis Roy b Boult 0
Extras (nb 1): 1
Total (nine wickets, 57.5 overs): 160
Fall of wickets: 1-50, 2-63, 3-66, 4-66, 5-96, 6-137, 7-148, 8-152, 9-160
Bowling: Boult 13.5-3-53-3, Southee 13-5-34-1, Santner 16-5-36-2, Wagner 15-3-37-2
New Zealand 2nd inns
T Latham b Mehedi Hasan 16
J Raval c&b Mehedi Hasan 13
K Williamson not out 104
R Taylor c Mehedi Hasan b Subashis Roy 60
H Nicholls not out 4
Extras (b14, lb6): 20
Total (3 wkts, 39.4 overs): 217
Fall of wickets: 1-32, 2-39, 3-202
Bowling: Kamrul 7-0-31-0, Mehedi 11.4-0-66-2, Shakib 10-0-30-0, Taskin 6-0-38-0, Subashis 5-0-32-1.
Image: New Zealand's Kane Williamson celebrates his century with teammate Henry Nicholls on Day 5 of the First Test against Bangladesh at Basin Reserve in Wellington on Monday
Photograph: Hagen Hopkins/Getty Images