Jorge Molina's penalty in the sixth minute of time added-on helped Getafe avoid defeat in La Liga following a 2-2 draw at struggling Real Valladolid.
Karim Benzema struck twice as Real Madrid came from behind to win 2-1 against Eibar at the Bernabeu.
Zinedine Zidane suffered his first defeat since retaking the reins at Real Madrid as Valencia ran out 2-1 winners at the Mestalla.
Karim Benzema scored a last-gasp winner to secure victory and spare Real Madrid's blushes against La Liga bottom club Huesca.
Rayo Vallecano have sacked coach Michel after seven consecutive La Liga defeats left them second from bottom, six points from safety.
Sevilla won their first match after sacking coach Pablo Machin as Wissam Ben Yedder's 53rd-minute penalty earned them a 1-0 victory at Espanyol.
All the top stories and transfer rumours from the back pages of Friday's European newspapers...
Lionel Messi scored a penalty and set up another goal as Barcelona came back to beat Rayo Vallecano 3-1 and stay firmly in control of La Liga.
Check out all the latest transfer news
Who's on the move this summer...
How the Premier League 2018/19 finished
8 dedicated Sky Sports channels
Watch the final day with a Sky Sports Pass
©2019 Sky UK