Pakistan are heading out of the World Cup despite scoring an impressive 315-9 in their final group match against Bangladesh on Friday.
Sarfaraz Ahmed's side needed to smash the world record for margin of victory in a one-day international but, after winning the toss at Lord's, they failed to muster enough runs to give them a chance.
Bangladesh must be all out for seven or lower if Pakistan are to deny New Zealand a place in the semi-finals alongside Australia, India and England.
Pakistan, backed by thousands of passionate flag-waving fans, started curiously slowly in the London sunshine, crawling to 38-1 after 10 overs.
Imam-ul Haq and Babar Azam stepped on the gas, reaching their 150 partnership for the second wicket off 146 balls.
But Babar was out shortly afterwards for an impressive 96 off 98 deliveries.
Babar had batted beautifully, hitting 11 fours as he and Imam laid the foundation for a late-innings flourish.
But in another huge blow for Pakistan, Imam was next to go when he trod on his stumps after scoring exactly 100, to leave them 246-3 in the 42nd over, with Mohammad Hafeez departing in the next over.
A late flourish boosted the score but Pakistan lacked the power-hitters to pile up the runs they needed, with the first six of the innings coming in the 47th over, hit by Imad Wasim.
Mustafizur Rahman took five wickets for Bangladesh, including a superb caught and bowled to dismiss Shadab Khan.
A win against Bangladesh would put Pakistan level with New Zealand on 11 points but their net run-rate is markedly inferior.
Pakistan 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 won just one of their first five matches, coming back strongly to beat South Africa, New Zealand and Afghanistan to sit fifth in the 10-team table, but in the end have left themselves too much to do.
Bangladesh: Mashrafe Mortaza (capt), Tamim Iqbal, Soumya Sarkar, Shakib Al Hasan, Mushfiqur Rahim (wkt), Liton Das, Mahmudullah, Mosaddek Hossain, Mohammad Saifuddin, Mehidy Hasan, Mustafizur Rahman
Pakistan: Sarfaraz Ahmed (capt), Fakhar Zaman, Imam-ul-Haq, Babar Azam, Haris Sohail, Mohammad Hafeez, Imad Wasim, Shadab Khan, Wahab Riaz, Mohammad Amir, Shaheen Shah Afridi
Umpires: Michael Gough (ENG), Richard Kettleborough (ENG)
TV umpires: Richard Illingworth (ENG)
Match referee: Richie Richardson (WIS)
Agence France-Presse