While the game looked stuck till very late, with neither team creating clear opportunities to score, Los Blancos captain Sergio Ramos converted a penalty in the 79th minute to assert his side’s dominance at the top of the standings.
Real did not have many big chances against their less illustrious neighbours, with Luka Modric having a shot deflected wide and Karim Benzema dragging an effort away from goal.
Real Madrid take themselves four points clear at the top of the La Liga table after defeating a gritty Getafe at the Estadio Alfredo Di Stefano on Thursday.
The away side probed early and put in a massive shift but Real Madrid managed to eke out a professional victory to maintain their golden form since the restart of the league post-lockdown.
Real Madrid only need to win four of their final five games to finish above Barca for their second La Liga title from last 8 seasons.