Barcelona moved into LaLiga's top five after Frenkie de Jong's goal clinched a 1-0 victory over bottom club Huesca in Lionel Messi's 500th league appearance for the club.
Blaugrana boss Ronald Koeman, who warned before the game that defeat would all but end his side's title challenge, saw a much-improved Barcelona performance as he earned back-to-back LaLiga away wins for the first time in his tenure.
Messi came back into the side after missing Barca's disappointing 1-1 draw with Eibar due to an ankle injury and was at his talismanic best, deftly assisting De Jong's volleyed goal after just before the half-hour mark.