Tigers needed only eight runs to end Pakistan's hopes of progress at the tournament
Pakistan thumped Bangladesh by 94 runs in their final 2019 International Cricket Council (ICC) World Cup group match on Friday but it was not enough to earn them a place in the semi-finals as New Zealand went through on net run-rate.
Sarfaraz Ahmed's team needed to smash the world record for margin of victory in a one-day international after winning the toss to keep the dream alive, but a miracle win never looked remotely likely at a sun-drenched Lord's.
Their total of 315 for nine meant Bangladesh needed only eight runs to end Pakistan's hopes of progress at the tournament and they reached that in the second over.
Teenager Shaheen Afridi took six wickets as Pakistan won the game easily to finish level on 11 points and games won (five) with fourth-placed New Zealand, leaving them outside the top four due to their inferior run-rate.
The other teams in next week's semi-finals are Australia, India and hosts England, with the final group matches taking place on Saturday.
Pakistan, backed by thousands of passionate flag-waving fans, started curiously slowly, crawling to 38-1 after 10 overs.
Opener Imam-ul-Haq (100) and batsman Babar Azam (96) eventually stepped on the gas, reaching their 150 partnership for the second wicket off 146 balls but both fell in quick succession to suck the momentum out of their innings.
A late flourish from all-rounder Imad Wasim, who scored 43 runs from 26 balls, boosted the score but Pakistan lacked the muscle to put themselves out of sight.
Fast-bowler Mustafizur Rahman took five wickets for Bangladesh, including a superb caught and bowled to dismiss all-rounder Shadab Khan.
In reply, all-rounder Shakib Al Hasan (64) scored his seventh fifty of the World Cup to shoot to the top of the tournament's run-scoring charts, with 606 runs at an average of more than 86.
His seven scores of fifty-plus equal the record set by India's Sachin Tendulkar at the 2003 tournament.
But Bangladesh lost wickets at regular intervals and were bowled out for 221 in the 45th over, with teenager Shaheen returning the best-ever figures for Pakistan at a World Cup of 6-35.
Pakistan paid a heavy price for a slow start to their World Cup campaign, winning just one of their first five matches.
They were shot out for a paltry 105 in their first match, with the West Indies winning in just 13.4 overs, meaning they took a huge hit on run rate.
They came back strongly to beat South Africa, New Zealand and Afghanistan to sit fifth in the 10-team table, but in the end left themselves too much to do.
Bangladesh ended the 10-team group phase in seventh spot with three wins in their nine matches.