Barcelona came back from a goal down to beat third-tier Linares 2-1 in the Copa del Rey last 16 on Wednesday.
Rivals who are enmity Real Madrid also advanced with a 3-1 win over Alcoyano, a third-division team.
Hugo Diaz’s header put Barcelona behind after 19 minutes, despite veteran Dani Alves’ return to the club.
However, the defending champions came back in the second half to keep their hopes alive, with goals from Ousmane Dembele (63 minutes) and Ferran Jutgla (69 minutes) securing the victory.
Real Madrid defeated Alcoyano, a small club that had knocked them out at the same stage last season, thanks to Eder Militao and a brace from Marco Asensio.