Chittagong: Hong Kong notched up a stunning two-wicket victory over Bangladesh in a thrilling qualifying round match but could not prevent the home side from booking a Super 10 berth in the World Twenty20 on Thursday.

Chasing a small target of 109, minnows Hong Kong struggled to 50 for five in the 10th over but a fine rear-guard effort from lower-order batsmen, led by Munir Dar (36), took them to a shock win with two balls to spare at the Zahur Ahmed Chowdhury Stadium.

Despite the loss, Bangladesh sneaked through to the Super 10 by topping Group A on net run rate. They finished the qualifying round on four points -- same as Nepal -- but had a better net run rate of plus 1.466 as against plus 0.933.

Bangladesh would have been knocked out of the tournament had Hong Kong chased down the target in 13.1 overs but that proved to be a tough ask.

Number seven batsman Dar, who top-scored with a 27-ball 36, was mainly responsible for the memorable win for Hong Kong as he took his side to the threshold of victory in the match that went down the wire.

Coming at the crease when Hong Kong were down 50 for five after 9.1 overs, Dar kept the asking rate at run-a-ball in the last six overs and took his side to 100, just nine adrift of target, when he was out in the 18th over.

There were some tense moments for Hong Kong as they lost another wicket but finally needed six runs from the last over. Abdur Razzak hit a six off Haseeb Amjad as Hong Kong reached 114 for 8 in 19.4 overs to notch up a historic win.

For Bangladesh, left-arm spinner Shakib-al-Hasan grabbed three wickets for just nine runs to put Hong Kong in trouble initially while Mahmudullah got two wickets for 13 runs.

Thursday's win by Hong Kong was the fourth such instance by an Associate country defeating a Full Member of the ICC in World Twenty20.