Mominul Haque and Liton Das led Bangladesh to a historic first innings lead over New Zealand in the first Test on Monday before both fell to Trent Boult in a dramatic final session at Mount Maunganui.
At stumps on day three Bangladesh were 401 for six in reply to New Zealand's 328, a lead of 73 with four wickets in hand.
They had reached 361 for four before Boult ended a 158-run stand with the wicket of Mominul for 88, followed 11 deliveries later by Das for 86.
It is the first time Bangladesh have taken a first-innings lead batting second outside of Asia.
They led New Zealand at Wellington four years ago when batting first, although a disastrous second innings saw them lose that Test by seven wickets.
It has been an exceptional Test for Mominul, a part-time spinning option who dismissed New Zealand's top two run-scorers Devon Conway and Henry Nicholls and then batted through 244 deliveries as he notched his 15th Test half-century.
Mominul rode his luck with the bat, surviving multiple chances as he put his side in a strong position before being trapped lbw by Boult.
He had the decision reviewed but there was no doubting the outcome as Boult's inswinger crashed into the back pad in front of off stump.
Mominul's innings included 12 boundaries to all corners of the ground and his partnership with Liton kept New Zealand wicketless for more than 52 overs.
Das, like Mominul, also struck boundaries on both sides of the wicket, as well as straight down the ground and he had 10 fours to his credit before edging Boult to wicketkeeper Tom Blundell.
Boult had switched to around the wicket and with the ball heading outside off stump Das could not resist an attempted cut and sent a thick edge the keeper.
Bangladesh batted cautiously in the morning session, only scoring 45 runs for the loss of classy opener Mahmudul Hasan Joy for 78 and Mushfiqur Rahim for 12.
Joy added eight to his overnight 70 before Neil Wagner had him caught at gully while Boult bowled Mushfiqur.
Mominul and Liton added 87 in the middle session and Bangladesh put on 94 between tea and stumps.
The not out batsmen at the close were Mehidy Hasan on 20 and Yasir Ali on 11.
Boult took three for 61 for New Zealand and Wagner three for 98.
SCOREBOARD:
New Zealand 1st innings 328 (D. Conway 122, H. Nicholls 75, W. Young 52; Shoriful 3-69, Mehidy 3-86, Mominul 2-6)
Bangladesh 1st innings (overnight 175-2)
Shadman Islam c and b Wagner 22
Mahmudul Hasan Joy c Nicholls b Wagner 78
Najmul Hossain Shanto c Young b Wagner 64
Mominul Haque lbw Boult 88
Mushfiqur Rahim b Boult 12
Liton Das c Blundell b Boult 86
Yasir Ali not out 11
Mehidy Hasan Miraz 20
Extras (lb7, nb3, w5, pen5) 20
Total: (for 6 wkts, 156 overs) 401
Fall of wickets: 1-43 (Shadman), 2-147 (Shanto), 3-184 (Joy), 4-203 (Mushfiqur), 5-361 (Mominul), 6-370 (Das)
To bat: Taskin Ahmed, Ebadot Hossain, Shoriful Islam
Bowling: Southee 32-4-94-0 (1w), Boult 30-11-61-3, Jamieson 30-9-72-0 (3w), Wagner 38-9-98-3 (1w, 3nb), Ravindra 26-4-64-0
Toss: Bangladesh
Umpires: Chris Brown (NZL), Chris Gaffaney (NZL)
TV umpire: Wayne Knights (NZL)
Match referee: Jeff Crown (NZL)