Trent Boult bagged five wickets as Bangladesh were rolled for 126 at stumps in reply to New Zealand's mammoth 521 for six declared in the second test in Christchurch on Monday.
The last wicket fell in the last over of the day as the Bangladesh innings ended inside a session and a half, and 395 in arrears.
The hosts must win the test to square the two-match series after losing the first test by eight wickets.
They had made batting look easy after being sent in on a green wicket with opener Tom Latham in the middle for more than nine hours for his 252, while Devon Conway added 109 and Tom Blundell was 57 not out.
When the Black Caps declared, pace bowlers Boult and Tim Southee then showed how to move the ball on a verdant surface as they ripped through the Bangladesh line-up.
Boult put the difference down to local knowledge.
"That's the beauty of test cricket, the little subtleties that come with different grounds," he said.
"The wicket obviously offers a little bit of bounce with a bit of grass on it.
'ALL ABOUT LENGTH'
"It's all about the length here, of us getting them on the front foot and encouraging them to drive down the ground ... pitching the ball up and hopefully we can get 10 (wickets) pretty quickly again."
Boult ended with five for 43 while Southee took three for 28.
Only two relative test novices, Yasir Ali and Nurul Hasan, provided any resistance.
Yasir, in his third test, made 55 while Nurul was out for 41 in his fifth test.
"Of course we're disappointed," Bangladesh batting coach Ashwell Prince said.
"If we can learn something from the Kiwis batting on day one it was that they left a lot more balls outside the off stump.
"The Kiwis got it swinging as well today and bowled really well and made it tough for our guys."
The tourists lost their first four wickets for only 11 runs inside seven overs and were then five for 27 before Yasir and Nurul mounted a 60-run salvage mission.
In the blitz start, Boult had Shadman Islam (seven) and Najmul Hossain Shanto (four) both caught by Latham at second slip while Southee bowled debutant Mohammad Naim and captain Mominul Haque without scoring.
The fifth wicket fell in the first over after tea when Boult had Liton Das caught behind for eight.
Southee came back to break up the Yasir-Nurul partnership with a ball that came back sharply on Nurul and he was trapped lbw.
Boult bowled Mehidy Hasan (five) to become the fourth New Zealander – behind Richard Hadlee, Daniel Vettori and Southee – to take 300 test wickets.
Kyle Jamieson removed Taskin Ahmed (two) and Yasir before Boult finished off the innings bowling Shoriful Islam for two.
LATHAM MARATHON
Latham's two catches in slips came after his marathon innings, the second double century of his career.
He faced 373 deliveries and hit 34 fours and two sixes with the innings coming to an end when he tried to up the run rate.
He smacked a six, four and another six off successive Mominul Haque deliveries but mistimed his fourth attempt to hit the Bangladesh captain and part-time spinner to the boundary and was caught at square leg.
Conway, resuming on 99, brought up his hundred with a four off the first ball of the day but was run out soon after.
It ended a 215-run second-wicket partnership following Latham's 148-run stand with Will Young for the first wicket.
New Zealand's elder statesman Ross Taylor, playing his 112th and final test, received a guard of honour on his way to the middle from the Bangladesh players and was quickly into his trademark strokes, with boundaries from a cover drive and a cut shot.
But on 28 he was caught by Shoriful Islam at square-leg off Ebadot Hossain and Henry Nicholls (duck) and Daryl Mitchell (three) followed soon after.
Blundell was unbeaten on 57 with Jamieson on four when the declaration was made.
NEW ZEALAND: Tom Latham (capt), Will Young, Devon Conway, Ross Taylor, Henry Nicholls, Tom Blundell (wk), Daryl Mitchell, Kyle Jamieson, Tim Southee, Neil Wagner, Trent Boult
BANGLADESH: Shadman Islam, Mohammad Naim, Najmul Hossain Shanto, Mominul Haque (capt), Nurul Hasan (wk), Litton Das, Yasir Ali, Mehidy Hasan, Taskin Ahmed, Ebadot Hossain, Shoriful Islam

