Stoke City were relegated from the Premier League as they crashed to a 2-1 loss to Crystal Palace at the bet365 Stadium.
Stoke entered into the contest, their penultimate game of the season, desperate to boost their survival hopes with what would have been a first victory in 13 matches.
But after they took the lead through Xherdan Shaqiri's 43rd-minute free kick, things turned around in the second half, with James McArthur equalising in the 68th minute and Patrick van Aanholt netting the winner in the 86th.
Stoke fans had their head in their hands at the final whistle as it was confirmed the club's 10-year stay in the division was coming to an end, Paul Lambert having failed to rescue them after replacing the sacked Mark Hughes as manager in January.
They are three points behind 17th-place Swansea City with one game remaining, but game between Swansea and Southampton on Tuesday means Stoke cannot escape the drop zone.
Palace, meanwhile, are now safe to complete the considerable upturn in their fortunes after Roy Hodgson succeeded Frank De Boer early in the campaign.
After the game got under way with Stoke being roared on by a thunderous rendition of "Delilah" from their supporters, they looked nervy in the early stages.
Palace made a couple of attempts on goal, with shots from Ruben Loftus-Cheek and Wilfried Zaha going wide, and Stoke did not have their first real chance until the 22nd minute, when Mame Diouf headed off-target from Shaqiri's cross.
The visitors applied more pressure before being forced into a change with five minutes left in the half, Joel Ward having to be replaced by Martin Kelly.
Three minutes later, Stoke's fans were sent into delirium as Shaqiri's free kick, via a touch off Loftus-Cheek, sailed past Wayne Hennessey to go in front.
There was a scare for the hosts shortly after the interval when the ball went to Loftus-Cheek in a dangerous position, with Erik Pieters making an excellent tackle to take it away from the midfielder.
Both sides then struggled to carve out much in the way of chances until a Palace counter-attack saw them draw level.
Substitute Ramadan Sobhi lost the ball, and it subsequently moved from Zaha to Loftus-Cheek and on to McArthur, who slotted past Jack Butland.
Badou Ndiaye fed Shaqiri, but he lost his footing as he tried to shoot and the flag was up for offside, and Zaha then blazed over when he looked certain to score.
Stoke, who would have been left on the brink of relegation by a draw, then had their fate sealed as captain Ryan Shawcross inadvertently diverted a Zaha pass towards Van Aanholt and he fired in.