SEVILLE: Jordi Alba's brilliant goal deep into injury time against Real Betis ensured Barcelona's spot in the Champions League for next season.
Xavi's team took the lead when Ansu Fati, fresh off the bench, sent a low effort into the bottom corner from the edge of the box, his first goal in La Liga since November 6 due to injury.
Marc Bartra, a former Barcelona defender, equalised for Betis shortly later.
Alba, though, volleyed in Dani Alves' cross four minutes into stoppage time.
Following the hosts' recent Copa del Rey victory against Valencia, Barcelona players presented Real Betis with a guard of honour before kick-off.
Rui Silva of Betis tipped Ronald Araujo's header onto the bar, while Guido Rodriguez of Betis struck the post.
Second-placed with three games remaining, Barca has an 11-point lead over Betis, who are in fifth place. When Xavi replaced Ronald Koeman in November, they were in the eighth position.