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).
|Red Bull confirm Honda switch|
|Arzani has a big future, says ´surprised´ Jakobsen|
|Goalkeepers are the victims of FIFA - Talking balls at Russia 2018|
|Mexico boss backs Lozano for Premier League move|
|Yankees, Nationals split unconventional doubleheader|
|Southgate praises Maguire´s performance|
|The only thing Kane hasn´t done is score in August - Southgate|
|Fenerbahce part ways with Kocaman|
|Celtics forward Hayward expected to be fully cleared by August|
|Nationals acquire closer Herrera from Royals|
|Angels star Ohtani to be re-evaluated in 2-3 weeks|
|Crisis club Sporting appoint Mihajlovic|
|Fekir could still join Liverpool this summer - agent|
|Brathwaithe and weather thwart Sri Lanka|
|Southgate bemused by England-Tunisia penalty decisions|
|Kane disappointed by refereeing decisions despite England win|
|Koepka backed by coach to win more majors|
|Rybarikova ousts Pliskova in Birmingham, seeds fail in Mallorca|
|Kane: England players had flies in our mouths|
|Lemar signs Atletico deal|
|Griezmann renews Atletico Madrid contract after rejecting Barcelona|
|Captain Kane comes good to heighten England´s aura of optimism|
|Wawrinka and Cilic cruise through at Queen´s|
|Saudi Arabia team safe after aircraft´s ´technical failure´|
|Courtois: Panama made unnecessary tackles|
|Thiem makes winning start on Halle grass|
|Tunisia 1 England 2: Captain Kane saves Three Lions|
|Trotz resigns as Capitals coach after Stanley Cup win|
|You´ll see the best of Hazard later - Eden predicts strong World Cup|
|Mickelson made statement over ´outrageous´ conditions, says Cowen|
|France will grow again - former coach Saint-Andre sees positive signs for Les Bleus|
|Lewandowski sets an example - Nawalka talks up Poland star|
|Runners and Ryders: Koepka shines at Shinnecock Hills as European list sees major changes|
|Mature and patient Belgium show success could be on horizon|
|Salah facing fitness test ahead of Russia v Egypt|
|South Korea´s Park has suspected hamstring tear|
|Sweden hero Granqvist full of praise for VAR|
|Iran v Spain: Isco impressed with Hierro´s seamless adaptation|
|Belgium 3 Panama 0: Mertens magic sets up Group G win|
|Jorginho has ´five-year Man City deal waiting´|
|Wolves sign Portugal goalkeeper Patricio|
|Pekerman criticises Barcelona´s treatment of Yerry Mina|
|Neymar misses Brazil World Cup training|
|FIFA opens disciplinary proceedings over alleged Mexico homophobic chants|
|Cisse hoping to be a pioneer for black and African coaches|
|World Cup over for Croatia´s Kalinic|
|Defiant Jones confident of upturn in England fortunes|
|Pogba a natural leader for France - Matuidi|
|Frampton to face Jackson as Fury continues comeback in Belfast|
|Team effort needed for Japan to stop James, says Nishino|
|Di Francesco extends Roma contract|
|It was a normal challenge - Switzerland equaliser fine by Shaqiri|
|Hamilton hopes to avoid ´boring´ French Grand Prix|
|Coutinho expects more Neymar punishment at World Cup|
|Cisse hails Mane as ´one of the best players in the world´|
|Forsberg falls flat as Granqvist proves Sweden´s hero|
|Sweden 1 South Korea 0: Granqvist´s VAR-assisted penalty settles tight game|
|Nishino concerned Japan players affected by Osaka earthquake|
|Isco pleased with Lopetegui´s Real Madrid appointment|
|Hazard hints at Real Madrid interest|
|Wasps disappointed as Wilson joins Scotland backroom staff|
|Hierro has full confidence in De Gea|
|Russia will stop Salah - Cherchesov|
|Allen signs new four-year Stoke contract|
|England issue update over injured duo Stokes and Woakes|
|Mancini leaves door open for Buffon´s Italy return|
|Alli calls for England to be ruthless in World Cup opener|
|Tahir rested as Proteas call up uncapped duo|
|Uruguay v Saudi Arabia: Centurion Suarez seeks World Cup redemption|
|Portugal v Morocco: Hat-trick hero Ronaldo hunts stricken Atlas Lions|