Seydou Keita's stoppage-time header gave 10-man Barcelona a 2-2 draw at Real Betis on Saturday, ensuring coach Pep Guardiola would not lose his final league game at the helm of the dethroned Spanish champions.

Sergio Busquets opened for Barcelona in the ninth minute.

But Betis looked set to get the win after Ruben Castro scored twice following Dani Alves' sending off in the 53rd until Keita rose up to head in Martin Montoya's cross.

Barcelona's Lionel Messi was unable to add to his league-record 50 goals. Real Madrid forward Cristiano Ronaldo can extend his total of 45 on Sunday when the league champions play Mallorca.

Guardiola's last game will be the May 25 Copa del Rey final against Athletic Bilbao.