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).
|I do my work on the pitch – Icardi unconcerned by Inter contract discussions|
|Lyon defender Rafael set for three months out|
|Inter captain Icardi is the ´perfect´ striker – Spalletti|
|Fulham have to stick together, says Ranieri|
|Nuno hails ´very special´ Wolves achievement after third straight win|
|Stuttgart captain Gentner´s father dies at Hertha fixture|
|Valverde not desperate for new centre-back amid talk of Christensen loan|
|Toulouse and Saracens stay perfect in Champions Cup|
|Kovac lauds Bayern´s best performance of the season|
|Barcelona can get the best out of Coutinho & Dembele, claims Valverde|
|Borussia Dortmund 2 Werder Bremen 1: Alcacer and Reus guarantee top spot for mid-season break|
|Bristol City 2 Norwich City 2: Canaries knocked off their perch despite late equaliser|
|Atletico´s fighting spirit lauded by Simeone, Godin|
|Hodgson relieved to see Palace end Zaha curse|
|Real Madrid 1 Rayo Vallecano 0: Benzema secures steady response to CSKA loss|
|Fulham 0 West Ham 2: Snodgrass, Antonio punish profligate hosts|
|Warnock brands refereeing situation ´a disgrace´ after Watford defeat|
|Inter 1 Udinese 0: Icardi penalty gets lethargic Nerazzurri back on track|
|Wagner retains belief in survival bid despite Newcastle defeat|
|Griezmann feeling the strain after busy 2018|
|Pochettino ´so pleased´ as tired Tottenham scrap to Burnley win|
|Man Utd hand Smalling new contract|
|ES Tunis 0 Al Ain 3: Convincing victory books River Plate semi|
|Championship Review: Bamford fires Leeds to summit, Middlesbrough defeated by QPR|
|Curry reacts to Kings´ trolling with moon landing video|
|Wentz ruled out of Rams clash|
|Pochettino reaches 100 Premier League wins for Tottenham faster than Wenger for Arsenal|
|Real Valladolid 2 Atletico Madrid 3: Griezmann the hero on landmark appearance|
|Silva rues Richarlison´s missed chances at City|
|Gibson has no worries over Proteas batsmen|
|Wolves 2 Bournemouth 0: Jimenez and Cavaleiro score against toothless Cherries|
|Crystal Palace 1 Leicester City 0: Captain Milivojevic earns vital victory|
|Watford 3 Cardiff City 2: Hornets hang on despite late fightback|
|Tottenham 1 Burnley 0: Eriksen snatches victory at the death|
|Huddersfield Town 0 Newcastle United 1: Rondon strike settles scrap|
|Sabres suspend forward Berglund for failing to report to the team|
|Saunders thanks Fury for getting him ´back on the right track´|
|Hannover 0 Bayern Munich 4: Gnabry and Kimmich star in crushing win|
|I admire Sterling – Guardiola|
|City´s strength in depth makes it hard for me – Jesus|
|Jamieson holds slender lead in Malelane|
|Kashima Antlers 3 Guadalajara 2: Comeback win sets up Real Madrid semi-final|
|Hosszu claims fourth Hangzhou gold, Le Clos beaten by Santos|
|Manchester City 3 Everton 1: Jesus at the double as City go top|
|Parker defiant on low blow claims after ending 2018 ´with a bang´|
|Alisson: Liverpool must beat Manchester United|
|Mourinho´s brutal honesty praised by Karanka|
|Fielding inspired by Bellew after overcoming setbacks to face Canelo|
|Mourinho loves being a manager ´more than ever´|
|Khawaja unconcerned by poor start to India series|
|WATCH: Dellavedova dives into media table to rescue possession|
|Christmas form could transform Man United´s season - Rashford|
|Urgent changes needed at Manchester United – Ferdinand|
|Ishant confident as Kohli carries India into day three|
|Modric takes aim at Simeone for ´constantly undermining Real Madrid´|
|Kevin Durant provides playoffs warning to inconsistent Warriors|
|A-League Review: Janjetovic off as Wanderers suffer derby defeat|
|VanVleet turnover the ´turning point´ in Raptors loss|
|Shanahan on Mahomes no-look pass: ´I do it all the time´|
|De Bruyne and Aguero return to City bench, Sterling left out of starting XI|
|Kohli and Rahane combine to thwart Australia in Perth|
|Modric cool on Madrid future beyond current deal|
|´Fatigued´ Embiid has a lot on his shoulders - Brown|
|Crespo agrees to take charge at Banfield|
|Westbrook on Murray scuffle: He was in my way|
|Liverpool v Manchester United: Van Dijk the rock on which Klopp can build a title triumph|
|Marcelo ´never´ considered Madrid exit amid Juventus links|
|Liverpool v Manchester United: Resurgent Rashford now a leader for Mourinho|
|Injury-plagued Nuggets beat Thunder to hold Western Conference lead|
|Southee takes five as Sri Lanka recover in Wellington|