Match ends, Barcelona 2, Deportivo de La Coruña 2.
Barcelona captain Xavi left the pitch to a standing ovation as his final La Liga game ended in a draw against Deportivo de La Coruna.
The 35-year-old midfielder, who has spent 24 years with the club, was withdrawn with five minutes left and saluted by the whole of the Nou Camp.
Lionel Messi's brace had put Barca 2-0 up before Deportivo fought back.
Lucas and Diogo Salomao earned a point for Deportivo who escaped relegation on head-to-head record with Eibar.
Eibar beat already relegated Cordoba but joined them in slipping into the Segunda Division.
Almeria were also relegated after losing to Valencia, who sealed a fourth Champions League spot behind third-placed Atletico Madrid.
At the Nou Camp, Barcelona's players wore special shirts to honour Xavi after he announced he will leave the Spanish champions at the end of the season to join Qatari side Al Sadd.
His final bow at the Nou Camp is expected to come in the Copa del Rey final against Athletic Bilbao next weekend while his last appearance in a Barcelona shirt is likely to be the Champions League final against Juventus in Berlin on 6 June.
"I am the happiest man in the world today and for the 17 seasons I have been here," Xavi told the crowd after fighting back tears.
"As the coach [Luis Enrique] has said this hasn't finished. We want two more titles and we want to be here with you all again in Barcelona on 7 June."
With the La Liga title already sewn up and both those two matches in mind, Enrique made nine changes to his starting line-up.
That meant ex-Arsenal defender Thomas Vermaelen featured for the first time since he joined last summer, having endured a difficult spell out through injury.
Barca took the lead in the fifth minute when Deportivo goalkeeper Fabricio parried the ball clear to Brazil midfielder Rafinha, who crossed for Messi at the back post and the Argentine headed in from close range.
The hosts had the ball in the net again before the break when Messi got on the end of the a sublime lofted pass from Neymar only for the referee to disallow it.
However, the same combination saw Barca increase their advantage with a clinical counter attack just before the hour mark.
The visitors pulled a goal back through winger Lucas, who curled the ball past goalkeeper Jordi Masip from the edge of the area.
And the Nou Camp was left stunned with 14 minutes left as Salomao equalised when he poked home after Haris Medunjanin's initial free-kick had been blocked by the Barcelona wall.
It did not really take the gloss off the day for Xavi, who lifted his eighth La Liga trophy for the Catalans after the full-time whistle.
- 15BartraSubstituted forMascheranoat 70'minutes
- 23VermaelenSubstituted forPereira dos Santosat 63'minutes
- 24MathieuBooked at 75mins
- 20Roberto Carnicer
- 6HernándezSubstituted forIniestaat 86'minutes
- 16Pereira dos Santos
- 31El Haddadi
Dep La Coruña
- 15Sanabria Ruiz
- 12da Silva Junior
- 3CanellaSubstituted forMedunjaninat 39'minutesBooked at 90mins
- 4Bergantiños GarcíaBooked at 90mins
- 10Domínguez LamasBooked at 58minsSubstituted forRiera Magemat 62'minutes
- 7PérezSubstituted forRodriguez Martinezat 86'minutes
- 6Rodriguez Martinez
- 21Riera Magem
- 32Hélder Costa
- Carlos Clos Gómez
- Shots on Target
Second Half ends, Barcelona 2, Deportivo de La Coruña 2.
Haris Medunjanin (Deportivo de La Coruña) is shown the yellow card.
Attempt missed. Adriano (Barcelona) right footed shot from the left side of the box is high and wide to the right. Assisted by Pedro.
Lionel Messi (Barcelona) wins a free kick in the defensive half.
Foul by José Rodríguez (Deportivo de La Coruña).
Corner, Deportivo de La Coruña. Conceded by Neymar.
Álex Bergantiños (Deportivo de La Coruña) is shown the yellow card.
Foul by Andrés Iniesta (Barcelona).
Oriol Riera (Deportivo de La Coruña) wins a free kick on the right wing.
Foul by Adriano (Barcelona).
Oriol Riera (Deportivo de La Coruña) wins a free kick in the defensive half.
Attempt missed. Neymar (Barcelona) right footed shot from outside the box is high and wide to the right. Assisted by Adriano.
Substitution, Deportivo de La Coruña. José Rodríguez replaces Lucas Pérez because of an injury.
Substitution, Barcelona. Andrés Iniesta replaces Xavi.
Corner, Barcelona. Conceded by Haris Medunjanin.
Delay over. They are ready to continue.
Delay in match Lucas Pérez (Deportivo de La Coruña) because of an injury.
Goal! Barcelona 2, Deportivo de La Coruña 2. Diogo Salomao (Deportivo de La Coruña) left footed shot from the centre of the box to the bottom right corner following a set piece situation.
Attempt blocked. Haris Medunjanin (Deportivo de La Coruña) left footed shot from the centre of the box is blocked.