Inigo Lopez struck nine minutes from time to give Granada a 2-1 victory that lifted them out of the Primera Division relegation zone and hurt Malaga's bid for European football.
Lopez followed up on the rebound to snatch the winner after Malaga's Jose Salomon Rondon had cancelled out the opener from Jude Ighalo.
Malaga finished the match with 10 men as Martin Demichelis was dismissed seven minutes from time for fouling Franco Jara.
Granada moved up from 18th to 14th place in the table, three points clear of the drop zone.




 





