New Zealand will face favourites England in the T20 World Cup semi-finals after claiming the last available spot with a comprehensive eight-wicket victory against Afghanistan.
The Black Caps' victory in their final group match in Abu Dhabi on Sunday eliminated pre-tournament favourites India, who finish their group campaign against Namibia on Monday.
Pakistan beat Scotland by 72 runs in their last group match later on Sunday to remain the only unbeaten team in the tournament and finish top of Group 2.
New Zealand secured second place in the group and take on Group 1 winner England in the first semi-final at Abu Dhabi on Wednesday.
In the other semi-final match, Pakistan plays Australia at Dubai on Thursday.
India needed the Black Caps to suffer an upset defeat but that never looked likely after New Zealand's pace attack, led by Trent Boult (3-17) and Tim Southee (2-24), restricted Afghanistan to 8-124.
That itself was a recovery with Najibullah Zadran smashing a career-best 73 to rescue Afghanistan from a top order collapse at the Zayed Cricket Stadium in Abu Dhabi.
New Zealand romped home in 18.1 overs to become the second team from Group II, behind Pakistan, to make the semis. Captain Kane Williamson made an unbeaten 40 and Dean Conway 36 not out.
Strong performance," Williamson said after the game. "We know how dangerous this Afghanistan side is. Nice for us to be able to set the tone with the ball, take wickets early and then keep them to below-par total."
"On this kind of pitch, this is not a decent total," conceded Afghanistan captain Mohammad Nabi. "We tried our best with the ball, (overall) we played good cricket in the tournament and we will take a lot of positives. We need to correct the mistakes we made with the bat."
Afghanistan finished the tournament with two wins from five games, with the victories coming against Namibia and Scotland.
New Zealand adjusted well and won four games in a row after losing to Pakistan in their opening group game - a run that included an eight-wicket win over India.
The Black Caps faced perhaps the toughest schedule, playing their last three games at three different venues in the oppressive afternoon heat of the United Arab Emirates.