The dismissals of Tamim for 95 and Shakib Al Hasan for 20 just before the tea break put the Black Caps on top, with bad weather preventing play in the final session.
"Yes, the momentum was with us, but we can't control the weather," said New Zealand batsman Ross Taylor. "[The match] is probably still pretty evenly poised and the rain has given our fast bowlers an extra break.
"When we do come out tomorrow hopefully, weather permitting, we can strike early and get them seven, if not eight, down before the second new ball," he said.
Tamim edged Neil Wagner to Kane Williamson at slip, before leg-spinner Ish Sodhi trapped Shakib Al Hasan leg-before. Before the twin blows, Bangladesh had made steady progress after skipper Mushfiqur Rahim won the toss and elected to bat in overcast conditions at the Sher-e-Bangla National Stadium.
Tamim, who smashed 17 fours in his entertaining 153-ball knock, put on 76 with Mominul Haque (47) for the third wicket and 67 with Marshall Ayub (41) for the second. Trent Boult gave New Zealand their first wicket when Anamul Haque (seven) miscued a pull shot and Williamson took the catch.
e-up from the drawn first Test, bowled him. The right-handed Ayub struck six boundaries in his 62-ball innings. "It would have been better if I was still at the crease," Ayub told reporters after play. "Runs were there for the taking.
"We were scoring freely. They were attacking us with deliveries bowled in the trajectory of the off-stump," he said. Corey Anderson ended Mominul's innings by having him caught behind.
Tamim prospered after surviving two dropped catches at the start of his innings. Wicketkeeper Bradley-John Watling dropped the left-hander on five before skipper Brendon McCullum let him off at second slip at 10.
Doug Bracewell was the unlucky bowler on both occasions. Bangladesh made one change to their team that drew the first Test in Chittagong, bringing in uncapped paceman Al Amin Hossain for injured Robiul Islam.
Photos: SRK does garba, Nawazuddin takes 'shower' in bathtub
Photos: Soha Ali Khan, Evelyn Sharma, Urvashi Rautela at Mumbai airport
Spotted: Lara Dutta, Mahesh Bhupathi with their daughter in Bandra
Photos: SRK, Tamannaah Bhatia, Varun Dhawan at Mehboob Studio
Birthday special: Sushant Singh Rajput's journey from TV to films