Real Madrid overcame an early blow and were made to toil after half-time for a 3-1 LaLiga win at Leganes.
The victory moves Zinedine Zidane's reigning champions up to third in the table above Valencia, although the hosts struck first as defender Unai Bustinza claimed his first senior goal.
Cristiano Ronaldo was given the night off by Zidane and, with Gareth Bale starting on the bench, Casemiro assumed the unlikely role of being Madrid's creative driving force.
The Brazilian midfielder created the 11th-minute equaliser as Spain winger Lucas Vazquez continued his impressive recent form and converted a glorious winner before the half hour.
Madrid shipped three goals in Sunday's win at Real Betis but Zidane was grateful to see Sergio Ramos marshalling a more robust backline as 13th-placed Leganes probed without reward during the second period, and the Madrid captain made sure of victory by coolly dispatching a penalty in the final minute.
The European champions are still seven points shy of Atletico Madrid in second and 14 behind leaders Barcelona.
1 - Casemiro has both scored and assisted in a same game for Real Madrid for the first time ever in all competitions. Crucial. pic.twitter.com/meLBxRRyaN— OptaJose (@OptaJose) February 21, 2018
Despite the likes of Toni Kroos, Luka Modric and Marcelo being out through injury, Zidane still elected to rest Ronaldo and first-choice goalkeeper Keylor Navas.
Madrid made a lackadaisical start and Navas' replacement Kiko Casilla was picking the ball out of his net in the sixth minute.
Gabriel Pires flicked on a left-wing corner at the near post and, after seeing his initial attempt saved, Bustinza flung himself towards the ball, taking Theo Hernandez's clearance on the top of his head to net an unusual diving header.
Madrid's response was impressively swift, with Casemiro intercepting a poor clearance and feeding Karim Benzema before improvising a flick from Mateo Kovacic's pass that allowed Lucas to clip a precise finish across Ivan Cuellar.
Casemiro was again at the heart of things when Madrid took a 29th-minute lead – this time providing the finishing touch himself after exchanging passes with Benzema and accepting Lucas' assist to crown a glorious one-touch move.
Madrid were comfortably on top as the half wound down, with Benzema almost heading a third from Lucas' cross.
Leganes impressively got themselves back on the front foot during the early stages of the second half – Asier Garitano's double switch, sending on Ruben Perez and Martin Mantovani in place of Dimitrios Siovas and Gerard Gumbau, rewarded with a spirited showing.
Tito slotted a pass down the Madrid left to Nabil El Zhar and Claudio Beauvue got on the end of his low cross to force a point-blank stop from Casilla.
El Zhar had a penalty claim following an untidy challenge from Kovacic rejected – the infringement did appear to take place fractionally outside the area – and Madrid continued to do more work in their own half than they would have liked.
Bale came on 15 minutes from time, curtailing an industrious and accomplished display from the much-maligned Benzema.
The Wales international almost picked out the bottom corner after springing the offside trap, but it was Ramos who grasped the ball and made no mistake when Diego Rico bundled Kovacic to the floor.
Key Opta facts:
- Casemiro has both scored and assisted in a same game for Real Madrid for the first time in all competitions.
- Lucas Vazquez is the player with most assists in LaLiga in 2018 (five), alongside Lionel Messi.
- Only Cristiano Ronaldo (10 goals and 2 assists) has been involved in more goals for Real Madrid than Lucas Vazquez (4 goals, 6 assists) in 2018 in all competitions.
- Real Madrid have taken more penalties than any other LaLiga side this season in all competitions (12, 11 scored).
- Sergio Ramos has scored in three consecutive LaLiga away games (three goals) for the second time, the first since September-Octtober 2007.
- Real Madrid conceded their fastest goal in LaLiga this season (five minutes and four seconds).
|McLaren issues ´have been addressed´ ahead of F1 season opener|
|Tuchel feels he would still be at Dortmund without bomb attack|
|Pogba shows off new haircut as Ben Yedder trolls Man United star|
|Pogba cannot be happy but must focus on France, says Deschamps|
|Samuels slogs Windies closer to World Cup qualification|
|Having Rabada in third Test massive - Elgar|
|Cavs coach Lue steps away from job due to health reasons|
|Debuchy disappointed to be left out of latest France squad|
|Barton rejects England´s World Cup chances|
|Hamilton can become greatest F1 driver in history - Kovalainen|
|Sevilla coach Montella interested in Italy job|
|Football brain lacking, poor attitude and fourth choice – The Mourinho-Shaw saga at Manchester Unite|
|I´ve had enough - Pietersen confirms retirement|
|UEFA charges Marseille and Lyon for Europa League trouble|
|Broad ready to do damage in New Zealand series|
|Injured Chiellini out of Italy squad|
|Toulon-bound Webb out for rest of season|
|Buffon cites Astori among reasons for Italy return|
|Welbeck faces no action over alleged dive against Milan|
|Charnley switches back to league to join Warrington|
|Barcelona? I´m staying with PSG, insists Marco Verratti|
|Bastian Schweinsteiger & Ana Ivanovic announce birth of son|
|The numbers behind Cristiano Ronaldo´s 50 hat-tricks|
|Woods relishing end to frustrating Augusta absence|
|Consistency the only thing stopping me from being the best, claims Depay|
|Guardiola second to none tactially, says Man City midfielder Gundogan|
|McIlroy: Bay Hill win a huge confidence boost for Masters|
|F1 2018 Pre-Season Report: Mercedes|
|F1 2018: The best Opta facts ahead of the new season|
|Liverpool captain Henderson ponders Salah and Suarez comparison|
|Messi worried by the uncertainty retirement brings|
|F1 2018 Pre-Season Report: Ferrari|
|Hunt handed ban and fine but cleared to return|
|Rants, criticism a familiar story – Is Mourinho set for Man United exit?|
|Guptill added to Black Caps squad|
|Thunder end Raptors´ streak, Davis stars|
|Stars goalie Bishop expected to miss at least two weeks|
|Messi desperate for World Cup success|
|Federer frustrated by Indian Wells final defeat|
|Del Potro: I can´t believe I won Indian Wells|
|Napoli causing Juventus problems as Sarri revels in crucial win|
|Balbirnie happy to boost Ireland chances|
|The better Ronaldo is, the better Madrid will be – Vazquez lauds four-goal hero|
|Ireland inspired by retired team-mates – Sexton|
|Indian Wells crown surreal for Osaka|
|F1 2018: Everything you need to know|
|Salah ´unstoppable´ like Messi, says Watford boss Gracia|
|Demanding Mourinho is still special, insists Matic|
|Truex Jr sweeps stages and wins first race of 2018|
|Woods pleased with progress at Bay Hill|
|McIlroy cruises to victory at Bay Hill, where Tiger impresses|
|Dallas 3 Seattle Sounders 0: Dempsey sees red after VAR|
|Ronaldo ´from another galaxy´, says Zidane|
|Del Potro saves match points to stun Federer for Indian Wells title|
|Eusebio Sack-ristan: Real Sociedad part company with head coach|
|Fassone ready for Gattuso talks after Milan resurgence|
|Napoli 1 Genoa 0: Albiol goal maintains pressure on Juve|
|Real Madrid 6 Girona 3: Four-goal Ronaldo continues hot streak with 50th career hat-trick|
|USA boss Sarachan calls up Weah for Paraguay friendly|
|Excellent Leipzig deserved Bayern win - Heynckes|
|Marquez will sleep easily after last-ditch Qatar move|
|Conte impressed by Morata´s return to scoring form|
|I lost the game myself - Simeone accepts responsibility for Atletico Madrid defeat|
|Borussia Dortmund to delay final Stoger decision - Zorc|
|Toulouse topple leaders Montpellier|
|Puel stands by Schmeichel after FA Cup blunder|
|Neymar could be back for Coupe de France final, says Silva|
|Valverde waits on Iniesta answer as Barcelona captain considers exit|
|Magnificent Osaka claims maiden title at Indian Wells|
|Villarreal 2 Atletico Madrid 1: Unal deals LaLiga title race blow for Simeone´s men|