A late second-half header from Youssef En-Nesyri earned Sevilla a 1-1 draw at Atletico Madrid on Sunday, securing Julen Lopetegui's side Champions League qualification despite extending their winless run to four games.
They fell behind at the Metropolitano on Sunday when Atletico defender Jose Maria Gimenez scored the opener with a header in the 30th minute.
Yet Sevilla equalised five minutes from fulltime following a mistake by Reinildo Mandava, who gifted the ball to Oliver Torres on the edge of his own area and the former Porto midfielder crossed perfectly for En-Nesyri to score for Sevilla.
There was a tearful goodbye from Atleti forward Luis Suarez when he was substituted in the 65th minute after the club confirmed on Sunday that the Uruguay international would be leaving the team at the end of the season.
With one match remaining, the result left Sevilla fourth in the standings on 67 points, three ahead of Real Betis in fifth, but with a better head-to-head record than their local rivals.
The Copa del Rey winners, who had already secured a Europa League spot, won 2-0 at home against Granada on Sunday.
They are on 73 points, five ahead of third-placed Atletico.
They are sixth on 62 points, six ahead of Unai Emery's Villarreal side who could fail to qualify for European competition entirely, after reaching the Champions League semi-finals this season.
They are only one point ahead of eighth-placed Athletic Bilbao, who won 2-0 on Sunday against Osasuna.
Villarreal play Barcelona next Sunday while Sevilla play Athletic, who are still fighting for seventh place and a spot in the Europa Conference League.