Sri Lanka held off a West Indies charge at Chester-le-Street on Monday to win an exciting battle of two World Cup also-rans by 23 runs.
Both teams came into the match aware they could not reach the semi-finals but the Caribbean side came close to pulling off the highest successful chase in World Cup history.
Sri Lanka batted brightly to post an imposing total of 338 for six in their 50 overs, thanks largely to Avishka Fernando's first one-day international century.
That total looked beyond the West Indies in the early part of their innings but Nicholas Pooran dug deep, also scoring his maiden ODI ton.
The West Indies found themselves in early trouble at 22-2, with Sunil Ambris and Shai Hope back in the dressing room, both dismissed by veteran fast bowler Lasith Malinga.
Chris Gayle flickered briefly but was caught for 35 from a steepling top edge by Jeffrey Vandersay off the bowling of Kasun Rajitha.
Pooran, 23, held the innings together but the West Indies' hopes were badly hit when Carlos Brathwaite was unluckily run out when bowler Isuru Udana diverted the ball into the stumps off his fingertips, with the batsman well out of his ground.
The West Indies looked down and out at 199-6 in the 35th over but Pooran put on 83 for the seventh wicket with Fabian Allen to keep them in the hunt before a second run-out.
The Caribbean side needed 31 runs off the final three overs when captain Dimuth Karunaratne summoned Angelo Mathews to bowl for the first time in an ODI since 2017.
He struck with his first ball, removing a distraught Pooran, who slashed at an innocuous wide delivery and was caught behind by wicketkeeper Kusal Perera. Earlier, Fernando hit a sparkling maiden ODI century, with all of the top order chipping in to help him.
The 21-year-old reached three figures off exactly 100 balls with eight fours and two sixes but was caught by Fabian Allen off the bowling of Sheldon Cottrell for 104.
Sri Lanka revived their fading hopes of reaching the World Cup semi-finals by beating England but a heavy defeat to South Africa and results elsewhere ended their chances.
West Indies started the tournament with a thumping seven-wicket win against Pakistan but have not won a single match since, with their batsmen in particular letting them down.
Australia are still the only side mathematically certain of their place in the last four, with India, New Zealand and England currently occupying the other top-four slots. Pakistan and Bangladesh still have a chance of progressing.-AFP
Scoreboard
========================================================
Sri Lanka
========================================================
D. Karunaratne c Hope b Holder 32
K. Perera run out 64
A. Fernando c Allen b Cottrell 104
K. Mendis c & b Allen 39
A. Mathews b Holder 26
L. Thirimanne not out 45
I. Udana c Holder b Thomas 3
D. de Silva not out 6
Extras: (b4, lb5, nb5, w5) 19
========================================================
Total: (6 wkts, 50 overs) 338
========================================================
Did not bat: J. Vandersay, K. Rajitha, L. Malinga
Fall of wickets: 1-93 (Karunaratne), 2-104 (Perera), 3-189 (Mendis), 4-247 (Mathews), 5-314 (Fernando), 6-327 (Udana)
Bowling: Cottrell 10-0-69-1 (w2); Thomas 10-1-58-1 (nb2); Gabriel 5-0-46-0 (w1, nb1); Holder 10-0-59-2 (w1, nb2); Brathwaite 7-0-53-0 (w1); Allen 8-0-44-1
========================================================
West Indies
========================================================
C. Gayle c Vandersay b Rajitha 35
S. Ambris c Perera b Malinga 5
S. Hope b Malinga 5
S. Hetmyer run out 29
N. Pooran c Perera b Mathews 118
J. Holder c sub b Vandersay 26
C. Brathwaite run out 8
F. Allen run out 51
S. Cottrell not out 7
O. Thomas lbw b Malinga 1
S. Gabriel not out 3
Extras: (b3, lb2, nb2, w20) 27
========================================================
Total: (9 wkts, 50 overs) 315
========================================================