Martin Braithwaite gave Leganes victory over Real Madrid but it was not enough to cause a Copa del Rey upset for the second year running.
Isco started as Real Madrid stumbled into the quarter-finals of the Copa del Rey despite a 1-0 loss at Leganes, with Santiago Solari's side progressing 3-1 on aggregate.
Madrid's 3-0 victory in the first leg gave Solari's men a strong cushion but they rode their luck at Butarque on Wednesday, having been knocked out of the competition by Leganes last year.
Martin Braithwaite opened the scoring in the first half but, although Leganes looked the likelier team to score the second goal, Madrid avoided conceding again to ensure their place in the last eight.