A tenth-wicket stand of 127 between BJ Watling (103) and Trent Boult (52 not out) helped New Zealand to a first innings total of 469 on the second day of the opening match in a two-Test series against Bangladesh on Thursday.
After starting the day at 280 for five, the visitors slumped to 342 for nine before Watling's second Test century and Boult's unbeaten half-century in Chittagong.
Left-arm paceman Boult then removed Bangladesh opener Tamim Iqbal for a duck with his second ball, before a 36-ball half century to 22-year-old Mominul Haque (77 not out) took his side through to 103 for two at the close.
The hosts had visions of bowling New Zealand out before lunch when Bruce Martin (1) and debutant Corey Anderson (1) were out within the first two overs of the day. Doug Bracewell (29) then combined with Watling in an eighth wicket stand of 57.
After Bracewell fell to Sohag Gazi debutant legspinner Ish Sodhi (1) quickly followed.
Watling played a typically gritty innings when he was reprieved after scoring four. Television replays showed paceman Rubel Hossain had overstepped when Watling was caught in the gully.
The late rally appeared to rattle Bangladesh, with Anamul Haque (3) following Tamin Iqbal back to the pavilion early in Bangladesh's first innings, lbw to Bracewell.
New Zealand 1st innings: (overnight 280-5)
P Fulton c Mominul b Nasir 73
H Rutherford c Razzak b Gazi 34
K Williamson lbw b Shakib 114
R Taylor c sub (Naeem) b Razzak 28
B McCullum lbw b Razzak 21
B Martin c Rahim b Rubel 1
C Anderson c Nasir b Razzak 1
BJ Watling st Rahim b Mominul 103
D Bracewell b Gazi 29
I Sodhi lbw b Shakib 1
T Boult not out 52
Extras: (b4, lb6, nb2) 12
Total (all out, 157.1 overs) 469
Fall of wickets: 1-57, 2-183, 3-244, 4-276, 5-280, 6-282, 7-282, 8-339, 9-342, 10-469.
Bowling: Robiul 13-3-23-0, Rubel 20-2-77-1, Razzak 55-10-147-3, Gazi 32-6-79-2, Shakib 24-5-89-2, Ayub 2-0-15-0, Nasir 5-1-19-1, Mominul 6.1-0-10-1.
Bangladesh 1st innings:
Tamim Iqbal c Williamson b Boult 0
Anamul Haque lbw b Bracewell 3
Marshall Ayub not out 21
Mominul Haque not out 77
Extras: (w1, nb1) 2
Total (for two wickets, 26 overs) 103
Fall of wickets: 1-1, 2-8.
Bowling: Boult 3-2-5-1, Bracewell 4-0-25-1, Martin 3-0-20-0, Sodhi 8-0-27-0, Anderson 3-2-8-0, Williamson 5-1-18-0.
Image: BJ Watling
Photograph: Rogan Ward/Reuters