Barcelona moved into La Liga'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 La Liga 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 just before the half-hour mark.
Huesca did open the visitors up on occasion and it remains to be seen whether Koeman can restore some consistency and style to this team, but they did enough to climb above Sevilla in the table.
Barcelona's early pressure paid off after 27 minutes when Messi played an exquisite chipped pass into the box, where de Jong evaded two defenders and guided the ball into the corner of the net from six yards on the volley.
Messi would have capped a fine first-half performance with a superb goal five minutes from the interval had Alvaro Fernandez not pulled off a spectacular save, palming his dipping 20-yard free-kick over the crossbar.
The six-time Ballon d'Or winner flashed a fierce effort narrowly wide from the edge of the box early in the second period, before Marc-Andre ter Stegen got down well to prevent Rafa Mir's close-range shot from becoming the equaliser.
Ousmane Dembele should have put the game beyond doubt when he went one-on-one with Fernandez 13 minutes from time, but the Huesca goalkeeper saved at his feet and then denied Messi again before full-time.