Seydou Keita [ Images ] scored a stoppage-time equaliser as 10-man Barcelona [ Images ] drew 2-2 at Real Betis to wrap up Pep Guardiola's last La Liga [ Images ] campaign as coach of the club on Saturday.
Much of the attention had been on whether Lionel Messi [ Images ] would add to his record 50 league goals this term but the World Player of the Year had a quiet game and was upstaged by Betis striker Ruben Castro.
Sergio Busquets [ Images ] headed Barca in front from a corner after nine minutes. A second yellow card for defender Dani Alves in the 53rd then turned the game on its head and opened the way for a Betis fightback.
Castro burst clear to lob keeper Victor Valdes [ Images ] in the 71st minute and he also broke through the middle to add his second goal three minutes later.
Messi struck the post with a free kick just before Keita flung himself at a cross to level matters.
Second-placed Barca finished with 91 points from 38 matches, six short of champions Real Madrid [ Images ] who can beat their La Liga points record of 99 with a win at home to Real Mallorca [ Images ] on Sunday.
Barca still have the King's Cup final to play against Athletic Bilbao on May 25 before Guardiola hands over the reins to his assistant Tito Vilanova [ Images ].
The Catalans will be chasing their 14th trophy from the coach's four years in charge.
Valencia, 30 points behind Barca in third spot, said farewell to coach Unai Emery after a 1-0 defeat at Real Sociedad.
French winger Antoine Griezmann scored the only goal after 64 minutes.
Argentine Mauricio Pellegrino will take over from Emery who is reported by local media to be close to joining Spartak Moscow [ Images ].
Emery, a manic touchline presence, leaves Valencia after guiding them to automatic qualification to the Champions League [ Images ] for the third year in a row.
Photograph: Jasper Juinen/Getty Images