Luis Enrique's side could extend their lead at the top of La Liga to six points, while the home side were keen to put further distance between themselves and the relegation places.
Lionel Messi put the visitors in front midway through the first half from distance to register his 300th goal in La Liga.
Lionel Messi in La Liga:
334 games
300 goals
137 assists
Not bad. pic.twitter.com/Rii959gTCN— bet365 (@bet365) February 17, 2016But their lead didn't last long, with Carlos Castro sliding home one minute later to interrupt Messi's party.