Leaders Real Madrid moved to within one win of the La Liga title after surviving a scare against Granada.
France defender Ferland Mendy opened the scoring with a ferocious finish from a tight angle before countryman Karim Benzema doubled the lead.
But Real were forced to endure a nervous second half after Darwin Machis fired through Thibaut Courtois’ legs.
Zinedine Zidane’s side are four points clear of nearest rivals Barcelona with two games remaining.
Given Real’s superior head-to-head record over Barca, Real require two points from their last two games, at home to fifth-placed Villarreal on Thursday and at relegation-threatened Leganes on Sunday.
Granada XI: Víctor Díaz, R. Azeez, Germán Sánchez, Fede Vico, Foulquier, D. Machís, Rui Silva, Carlos Fernández, Duarte, G.Dias, Y. Herrera
Subs: Soldado, Montoro, İ. Köybaşı, Antonio Puertas, Andorinha, Aarón Escandell, Mario Rodríguez, Y. Eteki, Carlos Neva, Antoñín Cortés, Pepe Sánchez
Real Madrid XI: Ramos, Modric, Benzema, Kroos, Courtois, Casemiro, Isco, Carvajal, Varane, F Mendy, Valverde
Subs: Bale, Hazard, Areola, Vazquez, Asensio, Militao, Brahim, Vinicius, Javi Hernández, Miguel Gutiérrez, Rodrygo, Altube