A late strike from Munir El-Haddadi gave Barcelona B a crucial 2-1 win over promotion-chasing Ponferradina in the Segunda division.
The away side had plenty of chances to take the lead in the first half, but Jesus Barrocal and Ruben Sobrino both fired wide when well placed.
Barcelona B took a surprise lead at the beginning of the second period as Alex Grimaldo fired the ball into the back of the net.
Sobrino wasted a fine chance to equalise nine minutes later, but the promotion hopefuls levelled through Acoran Barrera Reyes, who accurately slipped the ball past the keeper.
However, the hosts scored the winner through Munir to lift them off the bottom of the table.