New Zealand beat Bangladesh by four wickets on the fourth day of the second Test on Saturday to level the two-match series at 1-1 as Ajaz Patel ripped through the Asian side with six wickets before his batting colleagues secured victory.
Chasing 137 to win on a treacherous track at Mirpur's Sher-e-Bangla Stadium after Bangladesh's Zakir Hasan hit a battling 59, the tourists rode on Glenn Phillips' unbeaten 40 and Mitchell Santner's 35 not out to prevail.
Phillips was dropped on nought by Bangladesh skipper Najmul Hossain Shanto but maintained his composure after the Black Caps were reduced to 69-6 before tea to guide them home.
Bangladesh had resumed on their overnight score of 38-2 but lost wickets cheaply in the morning as spinners Patel (6-57) and Santner (3-51) took advantage of the turn on offer to heap pressure on the batsmen.
Patel produced a double strike in the 25th over to get rid of Mehidy Hasan Miraz and Nurul Hasan and leave Bangladesh in deep trouble at 97-7 but opener Zakir, who was starved of the strike as wickets tumbled at the other end, soldiered on.
Zakir took Bangladesh past the 100-run mark and then brought up his half-century to muted celebrations before hitting Santner for a huge six, but the left-hander became Patel's fifth victim when he miscued a sweep.
The hosts were dismissed for 144 before lunch in what was effectively the third day of a rain-affected contest in which an entire day was lost.
New Zealand had dragged themselves back into the contest on Friday thanks to a fifty by Phillips that gave them an eight-run lead after Bangladesh made 172 in their first innings.
Bangladesh won the opening match by 150 runs in Sylhet for their first victory on home soil against New Zealand.