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).
|Strickland apologises for ´stupid decision´ that led to broken hand|
|Five-time Open Championship winner Thomson dies aged 88|
|´Positive´ Pogba not bitter towards media, says Varane|
|Portugal privileged to have ´humble´ Ronaldo, says Pepe|
|Strickland breaks hand punching door after blown save, out for up to eight weeks|
|He will have received good money – Costa delighted by Griezmann extension|
|Kane: Pochettino sent me love hearts after World Cup heroics|
|Nationals place Adams on 10-day DL with broken finger|
|Dybala: I can play alongside Messi|
|Lewandowski: Poland didn´t take enough risks|
|England´s Kane aiming to reach Ronaldo, Messi levels with World Cup performances|
|Kicker given three-year match-fixing ban|
|England confirm Alli thigh injury|
|Federer through, Zverev out in Halle|
|Back on the map and earning letters from ladies, Tabarez embraces Uruguay´s heritage|
|Rampant England rout Australia in record-breaking display|
|Pulisic in right place at Dortmund, says Arena|
|Wilshere confirms Arsenal exit|
|NASCAR at Sonoma: TV schedule, standings, qualifying drivers for Toyota/Save Mart 350|
|Muguruza and Kvitova cruise through in Birmingham|
|Leno among top 10 most expensive goalkeepers|
|Pained Salah unable to halt Russia´s unlikely march|
|Kyrgios downs ´legend´ Murray as Dimitrov and Djokovic progress|
|Neymar pain normal – Coutinho unconcerned by ankle issue|
|Russia 3 Egypt 1: Salah strikes but hosts right on course for last 16|
|We must make Ronaldo less exceptional, says Morocco boss Renard|
|Chandimal handed one-Test ball tampering ban, faces further ICC charge|
|Arsenal sign goalkeeper Leno from Leverkusen|
|Mexico style in Germany win surprised Arena|
|Monaco complete €20m move for Lyon teenager Geubbels|
|Saudi team don´t know cause of aeroplane fire, Pizzi reveals|
|Champions League qualifying draw: Celtic travel to Armenia, Ajax face Sturm Graz|
|I´ve never seen a player win on his own – Santos shrugs off Ronaldo dependence|
|Murray impresses despite narrow defeat on return|
|West Ham land club-record Diop signing|
|El Hadji Diouf hails ´perfect start´ for Senegal|
|Cisse and Senegal give cause for African celebration|
|Carvajal ready to face Iran - Hierro|
|Japan´s World Cup victory over Colombia sparks celebrations on the streets of Tokyo|
|Poland 1 Senegal 2: Good fortune and bad errors hand Africans Group H win|
|England shatter ODI world record with total of 481 against Australia|
|Best yet to come from England hero Kane, says Rashford|
|Salah starts for Egypt against Russia|
|De Jong expects to stay at Ajax|
|Barcelona angered by Pique´s involvement in Griezmann saga|
|Federer begins Halle defence with comfortable Bedene win|
|Tabarez not worried by slow Suarez start|
|Brazil´s Neymar felt pain in his ankle, CBF confirms|
|Griezmann understands Atletico fans´ nerves over Barcelona speculation|
|Queiroz salutes Hierro for uniting Spain|
|Stump from Scotland´s defeat of England auctioned for charity|
|Red Bull will not have works team label, confirm Honda|
|Neymar hobbles out of Brazil World Cup training|
|Ronaldo´s revelry, Messi´s miss and Sanchez´s shocker - Russia 2018, World Cup of the penalty|
|Brazil ask FIFA to explain VAR decisions against Switzerland|
|Colombia 1 Japan 2: Sanchez red spoils Pekerman´s plans|
|Argentina v Croatia: Mercado wants an end to ´Messidependencia´|
|Hoffenheim director suggests €50m bid could land Kramaric|
|England will emerge as a ´champion team´, insists Jones|
|Ryder Cup teams shaping up great, says Strange|
|We cannot replace Iniesta – Abidal|
|Colombia´s Sanchez sees second-quickest World Cup red card|
|France v Peru: Varane and Les Bleus calm after unconvincing start|
|Semenya challenges IAAF hyperandrogenism rule with CAS|
|No Germany line-up changes needed, says Neuer|
|James absent from Colombia line-up|
|Alli to have scan on thigh knock after England win|
|Mooy not using World Cup to facilitate transfer from Huddersfield|
|Billy Vunipola a big loss for England, says Vermeulen|
|´Incredible´ Firmino works like a defender, says Mane|