Barcelona beat Cordoba, 5-0 on Thursday and sealed a place in the Copa del Rey quarterfinals.
Barcelona beat its second-division opponent 7-0 on aggregate.
Thiago Alcántara gave Barca the lead in the 17th minute when he slotted a right-footed shot past goalkeeper Mikel Saizar.
Spanish striker David Villa proved that he has not lost his scoring touch striking two beautiful goals in the 21st and 26th minute respectively.
Alexis Sánchez, who had missed two clear chances in front of an open net, headed in a corner kick in the 55th and netted again his second in the 85th.
Barcelona will face three games in the next two weeks against Malaga. The two teams play on Sunday in the Spanish league and then twice more in the Copa.