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).
|Celtics capitalise on Thunder meltdown, Harden scores 42 points|
|Jason Day hungry to reclaim top ranking: My game is close|
|Iconic 2002 World Cup haircut was media distraction, reveals Ronaldo|
|New Zealand star Taylor fit for day-night Test|
|Teenager Anisimova to face Muguruza in Miami|
|McIlroy credits Wayne Rooney for improved putting|
|Stokes return a ´huge boost´ for England – Root|
|Wright: Difficult for Liverpool sensation Salah to resist Real Madrid|
|Yaya Toure yet to report for international duty, confirm Ivory Coast|
|Masters favouritism could hinder Woods, Thomas claims|
|I wish I could still play with him – Ortiz on Red Sox addition Martinez|
|Morrison confirms plans to play for Jamaica|
|Warriors target Friday return for Curry against Hawks|
|Starc and Marsh set to play at Newlands|
|Red alert: Richard Sherman ´excited´ to be a 49er|
|Germany should be proud to have Sane, says Tah|
|Bertrand out of England friendlies with back injury|
|Optimistic McIlroy ´crossed that line´ with Bay Hill win|
|Young backs Mourinho over Shaw treatment|
|BVBolt? Athletics great scores header while training in Dortmund kit|
|Fekir will look to leave Lyon the right way, says agent|
|Ex-Springboks coach Meyer takes charge at Stade|
|Spieth relishing Reed match play showdown|
|Alisson loves Roma and we haven´t discussed Liverpool move, insists agent|
|Henderson becomes third Ireland player to sign new deal|
|Romo ready to create ´mental bubble´ ahead of PGA Tour debut|
|McTominay: I always wanted to play for Scotland|
|Chiesa vows to honour Astori with Italy displays|
|England´s Pope ready for Heaton challenge amid World Cup race|
|Lautaro Martinez confirms impending Inter move|
|Morata wasn´t happy with Spain snub, admits Alonso|
|Raiola rages over Italy´s Balotelli snub|
|Injured Saunders postpones Murray fight|
|PGA tightens security at Dell Match Play in wake of Austin bombings|
|Raiola hopes Reina to Milan hastens Donnarumma exit|
|F1 Raceweek: Hamilton prepares to begin title defence in Melbourne|
|Former Sevilla coach Berizzo eyeing return after beating cancer|
|Cutrone did not expect whirlwind Milan season and Italy call-up|
|Saints punish North for missing training|
|´Happy´ Kepa mulled over Real Madrid move|
|GGG wants Saunders next if Alvarez bout is called off|
|Former All Black Mika passes away|
|Lucas Vazquez keen on Real Madrid stay|
|South Africa delighted to call on ´world´s best´ Rabada|
|Tiger Woods continues climb in FedEx Cup, world rankings|
|Juventus clear Chiellini of serious injury|
|Newcastle charged as youth team allegedly breach advertising regulations|
|Kearney joins Best in extending Ireland contract|
|I did not betray Roma – Pjanic could not pass up Juventus opportunity|
|Cardiff Blues appoint Mulvihill as Wilson replacement|
|Title-chasing Sarri closes on Napoli renewal as he hopes to repay fans|
|Cook: I wasn´t close to quitting during Ashes|
|Messi and Ronaldo reveal World Cup kits|
|Nara praises Inter project as Icardi talks continue|
|Best to lead Ireland in World Cup after signing extension|
|Marseille´s Rami wants to ´tickle´ PSG|
|Fury targeting Louis´ record for title defences|
|Salah can push on to Messi´s level - Robertson|
|Rabada free to play in rest of South Africa-Australia series|
|F1 2018: Halo splits opinion ahead of Australia debut|
|Iniesta better than last year – Lopetegui|
|Federer yet to decide on clay-court season|
|Okon quits as Mariners head coach|
|LeBron triple-double powers Cavs past Bucks as Love returns|
|Lopetegui: Morata must earn World Cup spot|
|Ronaldo has asked about China – Scolari|
|Ebron signs two-year deal with Colts|
|Spieth, Reed to do battle in Match Play|
|Rangers´ Perez slaughtered, ate bull that caused broken elbow|
|Bills improve offensive line with Bodine, Newhouse|