Karim Benzema and Real Madrid left it late to go nine points clear at the top of LaLiga with a 1-0 win at Rayo Vallecano.
Madrid entered Saturday's contest with the chance to stretch their advantage over second-placed Sevilla but laboured for long periods against a side on a four-game losing streak.
Casemiro had the ball in the net late in the first half but saw his strike ruled out for offside.
Madrid struggled to exert dominance thereafter and were somewhat fortunate not to fall behind in the second half, but seven minutes from time Benzema tapped in to seal the points after an excellent one-two with Vinicius Junior.
Madrid unsurprisingly dominated possession in the first half but it wasn't until the 24th minute that their former goalkeeper Luca Zidane was truly tested as he was forced to turn Marco Asensio's curling shot behind.
Rayo carried a threat of their own, however, and soon after Asensio went close, Madrid were grateful to see Sergi Guardiola's header whistle past the left-hand post.
Brave Rayo
Benzema then saw an effort deflected narrowly wide of the goal before Casemiro appeared to have lashed Madrid in front, only for Video Assistant Referee to intervene.
The hosts continued to cause Madrid problems after the break, with Thibaut Courtois forced into an acrobatic save to tip Mario Suarez's header from Oscar Trejo's corner over the crossbar.
However, Rayo's valiant efforts were undone by the quality of Madrid's best two attacking players.
Benzema collected the ball on the edge of the box from Rodrygo Goes and slid Vinicius in down the right-hand side of the box before surging into the area himself to tap in a simple finish from the Brazilian's composed cutback and seal the points.