On an eventful day, which saw 15 dismissals including a brain-fade out, Bangladesh kept them aloft in pursuit of their first ever Test series victory against New Zealand.
Despite being all out for 172, Bangladesh bounced back nicely on a familiar Mirpur Sher-e-Bangla National Cricket Stadium pitch, reducing New Zealand to 55-5 before the bad light forced stumps on day one.
New Zealand are now trailing by 117 runs and need huge effort to take a lead, which looked unlikely.
The wicket played to its true reputation as it was extremely slow and low and the bounce was uneven, making the life hell of the batters from the both teams. But most of the Bangladeshi batters threw away their wicket in ugly fashion.
The New Zealand bowling attack maintained a tight line and length to create pressure by conceding just eight runs in the first seven overs after Bangladesh captain Najmul Hossain Shanto opted to bat first.
Left-arm spinner Mitchell Santner (3-31) and offspinner Glenn Phillips (3-65) shared six wickets to wreck havoc on Bangladesh batting line up.
Another left-arm spinner Ajaz Patel claimed 2-54 while skipper Tim Southee who bowled 5.2overs but didn't concede a single run, took one wicket.
Mushfiqur Rahim made team-high 35 but became the first Bangladeshi batter to be dismissed for 'handling the ball.'
While defending a back of a length delivery off fast bowler Kyle Jamieson, the most experienced batter of Bangladesh used his right hand to keep the ball away. It wasn't though anywhere close to the off-stump.
After New Zealand team appealed for the out, the third umpire checked and then gave him out for 'obstructing the field'.
Bangladesh's first boundary came in the eighth over when Zakir Hasan drove Patel through cover for four.
The pressure eventually got the better of Zakir (8) when he played a rash shot against Santner and chipped it straight to mid-on.
In the next over, Patel dismissed Mahmudul Hasan (14) after he was beaten by the drift to give a catch at short-leg.
Mominul Haque (5) was the next to go when he was caught behind off Patel's bowling.
But the biggest blow for Bangladesh followed in the next over when captain Najmul Hossain Shanto (9), who hit a century in the previous test, attempted a reverse sweep against Santner.
The on-field Umpires turned down the appeal but New Zealand reviewed it successfully to leave Bangladesh 47-4.
Mushfiqur and Shahadat Hossain Dipu, playing his only second Test, shared 57-run, the highest for the team's innings, which eventually kept Bangladesh ahead on tricky wicket.
The dismissal of Mushfiqur triggered another collapse, which began with Dipu's dismissal. Dipu who made 31 was caught down the leg-side off the bowling of Phillips.
The onus was on Mehidy Hasan Miraz to lead a fightback with the lower order but Santer came back to dismiss him as New Zealand bowled Bangladesh out shortly after tea.
Miraz however led Bangladesh's bowling attack with 3-17 and left-arm spinner Taijul Islam, fresh from his 10-184 in the first test, took 2-29.
Tom Latham and Devon Conway started cautiously but Miraz broke through with the wicket of later, with a delivery that Conway thought would turn.
Instead it went straight to crash the stump as Conway was out for 11. Taijul then dealt double strike-dismissing Latham and Henry Nicholls. New Zealand fell in deep trouble when Kane Willaimson, the centurion of the previous test, ended up getting an inside edge towards short while defending a quicker delivery of Miraz.
Just a ball later, Miraz fired another quicker one that kept extremely low to trap Tom Blundell leg-before for duck.
Daryl Mitchell (12) and Glenn Phillips (5) were batting when New Zealand's misery against relentless spin attack came to an end because of bad light.