New Zealand recorded their sixth successive win at the 2015 World Cup as they beat Bangladesh by three wickets.
World Cup Pool A, Hamilton: Bangladesh 288-7 (50 overs): Mahmudullah 128*, Sarkar 51 New Zealand 290-7 (48.5 overs): Guptill 105, Taylor 56; Shakib 4-55 New Zealand won by three wickets
Chasing 289 to win, the co-hosts overcame a late collapse to win with seven balls to spare, with Martin Guptill scoring 105, Ross Taylor 56 and Grant Elliott 39.
Bangladesh had posted 288-7 in Hamilton as Mahmudullah made an unbeaten 128, his second century in two matches.
New Zealand, who remain unbeaten, had already secured top spot in Pool A.
The Kiwis, who have lost six World Cup semi-finals, will face Pakistan, Ireland or West Indies in the quarter-finals in Wellington on Saturday, 21 March.
They showed why they are one of the favourites to win the competition with a hard-fought victory after they won the toss.
In a thrilling finish, New Zealand fell from 210-3 to 269-7 as Bangladesh captain Shakib Al Hasan claimed 4-55, but Daniel Vettori and Tim Southee saw the hosts home after a rapid 39 from Corey Anderson.
Defeat means Bangladesh are likely to finish fourth in Pool A, which would mean a quarter-final against Pool B winners India in Melbourne on Thursday, 19 March.
Earlier, Trent Boult claimed the wickets of Imrul Kayes and Tamim Iqbal during a hostil opening spell as Bangladesh slipped to 27-2.
Mahmudullah, who was dropped on nought by Guptill and on one by Anderson in the following over, followed up his 103 against Englandwith his highest ODI score.
He was helped by Soumya Sarkar’s 51 – his maiden ODI half-century – before Sabbir Rahman hit 40 off 23 balls.
The Kiwis looked in trouble at 33-2 after Shakib dismissed Brendon McCullum and Kane Williamson.
However, Guptill, who will play for Derbyshire in this year’s County Championship before New Zealand begin their tour of England, put his side in control by hitting 11 fours and two sixes in his 100-ball knock.
Man of the match Guptill said: “We have a lot of belief and the way we are executing our skills is pleasing. We just need to keep that up over the next few weeks.”