Lionel Messi scored twice as Barcelona edged out Getafe to move to third in the La Liga table, two points behind rivals and second-placed Real Madrid.
The Argentine superstar broke the deadlock before Getafe equalised through Clement Lenglet’s own goal.
Meanwhile, a mix-up between Sofian Chakla and keeper David Soria restored Barca’s lead and Messi continued in his outstanding form which helped them to the Copa del Rey by making it 3-1 later on.
Enes Unal’s goal from the penalty spot seemed to have given Getafe hope but goals by Ronald Araujo and Antoine Griezmann, from the penalty spot sealed the points for Ronald Koeman’s men
Barcelona are five points behind leaders Atletico Madrid, who they host on 8 May, but have one game in hand.
Earlier in the day, Barca issued a statement about signing up to the European Super League, stating it was a “historic opportunity” to guarantee football’s financial sustainability.