Nelson: Kyle Coetzer scored Scotland's first World Cup century but their tournament hopes were ended with a six-wicket loss to Bangladesh at Saxton Oval, Nelson on Thursday.
Scotland can no longer qualify for the knockout stages after losing their fourth match out of four in Pool A.
Coetzer's 156 was the best World Cup score by an associate nation batsman and helped his team post 318-8, their highest score against a Test side.
But Tamim Iqbal (95) led Bangladesh to victory with 11 balls to spare.
It was the second highest successful run chase in a World Cup game after the 329-7 Ireland managed against England at Bangalore in 2011.
The result means England must beat Bangladesh when the two sides meet on Monday if they are to maintain their hopes of reaching the quarter-finals.
Scotland, meanwhile, face the daunting task of taking on Sri Lanka and Australia in their remaining group matches.
Their chances of a first World Cup victory looked promising after Coetzer brought up his record-breaking century in style by hitting his second six.
The 30-year-old Northamptonshire batsman finished with 17 fours and four sixes in his 134-ball innings.
Scotland were reduced to 38-2 in the 10th over after being asked to bat but Coetzer put on 78 with Matt Machan (35) and then 141 with captain Preston Mommsen (39). His stand with Mommsen was Scotland's first century partnership in 12 matches at World Cups.
After Coezter was dismissed in the 45th over with Scotland 269-5, Richie Berrington (26) and Matt Cross (20) combined for a quickfire 39 that saw their side past 300 for only the third time in ODIs.
While Saxton Oval is a high-scoring ground, the total was made tougher for Bangladesh when opening batsman Anamul Haque appeared to dislocate his right shoulder diving to stop a boundary and was unable to bat.
Seamer Josh Davey took an early wicket but Tamim and Mohammad Mahmudullah (62) made excellent progress before the latter was dismissed in bizarre circumstances.
The batsman was bowled by Iain Wardlaw for 62 after deflecting a leg-side delivery on to the stumps off his back foot.
Tamim was closing in on Bangladesh's first hundred in a World Cup match but was trapped leg before wicket by Davey to renew Scotland's hopes.
But Mushfiqur Rahim made a rapid 60 and Shakib Al Hasan (52 not out) and Sabbir Rahman (42 not out) completed the victory with no further alarms as Scotland's bowlers struggled.
Brief scores
Scotland - 318/8 (Coetzer 156, Taskin Ahmed 3-43)
Bangladesh - 322/4 (Tamim Iqbal 95, Mahmudullah 62, Rahim 60, Shakib 52*)
Result - Bangladesh won by 6 wickets
Points - Bangladesh 2, Scotland 0
MOM - Kyle Coetzer (Scotland)