Skipper Shakib Al Hasan and Mahmudullah batted with determination as Bangladesh avoided the follow-on the third day of the only Test being played at the Seddon Park ground, here on Wednesday.
The two batsmen added 145 runs for the seventh wicket as the tourists crossed the 400 run mark, eventually remaining just 145-run short of New Zealand total.
With the conditions assisting their bowlers, the hosts began the day with a flourish scalping off wickets in quick succession.
At lunch, Daniel Vettori and his men had consumed six opposition wickets as the Bangladesh scoreboard read a dismal 211.
Finally, it was left to skipper Shakib and Mahmudullah to thwart the Kiwi charge.
While Mahmudullah struck a patient 115 off 177 deliveries, Shakib put on a fine 87 before edging a Chris Martin delivery to wicketkeeper Brendon McCullum.
In the second innings the Kiwis were batting on 9 for one when stumps were drawn with Tim McIntosh (5) and Peter Ingram (2) at the crease.
Earlier, opener Bradley-John Watling was run out by Bangladesh skipper Shakib Al Hasan on one.