Deportivo La Coruna beat the drop after earning a point at Barcelona.
Deportivo La Coruna fought back from two goals down to draw 2-2 against Barcelona and guarantee their La Liga survival in the process.
Long-serving midfielder Xavi will bring an end to an 18-year Barca career when he leaves for Qatari side Al-Sadd in the summer and Lionel Messi looked to have given him the perfect send-off when he scored in both halves to put the newly-crowned champions into a 2-0 lead.
But Deportivo were fighting for their top-flight lives and Lucas Perez gave them hope with an exquisite long-range strike in the 67th minute before Diogo Salomao also struck from distance nine minutes later to earn a priceless point which preserved their top-flight status, thanks to their better head-to-head record over Eibar.