Leganes beat Malaga to confide the Andalusian side to rock bottom in La Liga and now looking likely to make the drop into Segunda.
Mistakes on the field and off cost Malaga another three points as they fell to their sixth consecutive defeat in the outskirts of Madrid.
Head coach Jose Gonzalez opted for a change in style as he handed Alberto Bueno a start, leaving Brown Ideye on the bench.
Only a win would do for the Andalusian side, so the visitors could ill afford to sit back and soak up any pressure from Leganes, who for large parts of the season so far, have been impressive.
Despite creating two half chances through Diego Rolan, Malaga failed to really test Leganes’ strong defensive resolve and the game ended 0-0 at the break.
The game did open up in the second half as the hosts started to control the game and they took the lead through Javier Eraso, who headed home from Diego Rico’s cross from the left hand side.
Ideye was then hauled on by Gonzalez but the Nigerian striker but his impact was little as Nordin Amrabat doubled the home lead and gave Malaga another defeat.
Up next for Malaga is the daunting task of facing league leaders Barcelona.