Los Blancos struggled to break the home side down for the majority of proceedings, but Karim Benzema popped up in the 83rd minute to secure the 1-0 victory and all three points.
Madrid’s closest rivals in the table, Sevilla and Real Betis, face each other on Sunday in what is sure to be a fiercely contested Seville derby.
Alaves earned a potentially vital point away at Getafe in a 2-2 draw. The former are still in the relegation zone, however.
Sevilla v Real Betis
Granada v Cadiz
LA LIGA STATISTICS: