Marco Asensio kept Real Madrid’s dim hope of retaining their La Liga title alive with the winner against Getafe.
Carlo Ancelotti made eight changes as Madrid warmed up for Wednesday’s Champions League semi-final second leg at Manchester City.
It culminated in a scrappy performance against a Getafe side in the relegation zone, before Asensio’s deflected strike 20 minutes from time.
Madrid lead Barcelona by 11 points with four games remaining.
Barca will seal the title if they win their derby at Espanyol on Sunday (20:00 BST).
Madrid’s much-changed squad included a rare start for Eden Hazard, just his second in the league this season, while Toni Kroos, Vinicius Junior and Luka Modric were all brought in from the bench.
It took Madrid until the 70th minute to break through, with Asensio’s shot from the edge of the box hitting a defender and flying past Getafe keeper David Soria.
Attention now turns to next week’s draw at the Etihad Stadium, after the the first leg at the Bernabeu ended 1-1.