Zinedine Zidane has said his side needed to secure three points against Getafe on Saturday to put pressure on Barcelona.
Zidane’s side were without the injured Gareth Bale, but they had Karim Benzema back and he fired them in the lead just before the break.
The home side always looked threatening though and they replied in the second half through veteran striker Jorge Molina, who slid the ball past stand-in keeper Kiko Casilla.
Ronaldo would then take charge as his effort from two yards was saved well, before Isco provided the assist for the Portuguese international to score his league goal of the season and secure all three points for the visitors.
“It was important for us to get our three points before the Atletico-Barcelona match,” Zidane explained at his post-match press conference.
“I will watch that game as a fan of football and we will have to wait and see if we have cut the gap to our rivals.”
The victory was Real’s fourth success win in all competitions and they gained two points on league leaders Barca, who were held to a 1-1 draw with Atletico Madrid at Wanda Metropolitano on Saturday evening.
The result seemingly ends Madrid’s poor run of form and stuttering start to the season, seeing them leapfrog both Sevilla and Valencia in the La Liga standings.
Real’s next match is on Tuesday when they entertain Tottenham in the Champions League at the Santiago Bernabeu, whilst Getafe must pick themselves up and prepare for Levante next week.