Gerard Pique scored the vital goal to earn Barcelona a nervy 1-0 win over Dynamo Kyiv in Champions League Group E on Wednesday and keep alive the Spanish side's hopes of reaching the knockout rounds.
Pique volleyed home Jordi Alba's cross in the 36th minute to register Barca's first goal of this season's competition and secure its first victory after 3-0 defeats by Bayern Munich and Benfica.
Ronald Koeman's team moved to third in the standings with three points, one behind Benfica and three adrift of the Germans ahead of the clash later on Wednesday.
Barcelona received another boost when striker Sergio Aguero came on as a substitute late in the second half and looked to have recovered from the calf injury he suffered in pre-season after signing from Manchester City.
The Argentina international should be in contention to play in Sunday's Clasico against Real Madrid.
It was not a convincing win for Barcelona against a Dynamo Kyiv team who offered little attacking threat and did not muster a single shot on goal.
READ: UEFA Champions League: Ronaldo header seals United comeback win over Atalanta
Barca coach Ronald Koeman left Ansu Fati, Philippe Coutinho and Aguero on the bench ahead of the Clasico and Sergino Dest, who usually plays left back, was moved up to play alongside Luuk de Jong and Memphis Depay in attack.
After a couple of missed chances by Dest and De Jong, the crowd started booing the home team and Koeman showed his frustration on the sidelines by asking Fati and Coutinho to warm up after only 31 minutes.
Just before the Dutch coach was about to make the substitutions, however, defender Pique eased the tension with a cool close-range finish from Alba's cross.
Fati and Coutinho came on after halftime and Barca improved with 18-year-old Fati showing his quality and almost scoring a brilliant goal with a backheel.
Barcelona was unable to turn its possession into goals but it hung on to seal a vital victory.
Alba sustained an ankle injury and could miss the game against Real Madrid, saying he felt "excruciating pain" during the second half.
"I don't know what it is but I have something. I'm hurt," Alba said.
"It's an important week for us, we won two games in a row and losing against Dynamo would eliminate us from the Champions League. Now it's El Clasico and it will be tough, we need our supporters to be on our side."