Chelsea crashed to defeat at Aston Villa but clung on to a place in the top four thanks to a fightback on the other side of the Midlands.
Bertrand Traore turned up the pressure on his former club, by scoring the opener and winning the penalty from which Anwar El Ghazi made it 2-0 in front of a jubilant Villa crowd.
Ben Chilwell pulled a goal back in a nerve-wracking finish and the Londoners ended the game with 10 men after a red card for captain Cesar Azpilicueta.
Chelsea were rescued, however, by fierce rivals Tottenham, who twice trailed at the King Power Stadium, but pulled level with an own goal by Kasper Schmeichel and two late goals from Gareth Bale broke Leicester hearts.
Thomas Tuchel, who lost an away game for the first time as Chelsea boss, was relieved to finish the season in fourth.
But there was an injury scare for Tuchel ahead of the Champions League final with goalkeeper Edouard Mendy off at half time.
Key midfielder N’Golo Kante, struggling with a hamstring problem, was absent from the team sheet at Villa Park.