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).
|Pochettino confirms Walker-Peters set to start against Barcelona|
|Denver Nuggets add free agent Young|
|Topping Group A no magic wand for an easy knockout draw, says Simeone|
|The cake has been made, now we need the cherry - Ancelotti targets repeat at Anfield|
|Lloris braced to face ´one of the best in history´ in Messi|
|Tuchel expects Neymar to face Red Star|
|Foden signs Manchester City deal to 2024|
|It happened to me! - Valverde laughs off Dembele timekeeping|
|´Projecting´ an Argentina return? Messi met with AFA president and Scaloni|
|Erasmus expects to leave head coach role after World Cup|
|Chelsea issue suspensions pending investigation into Sterling incident|
|Kane is extraordinary – Valverde hails reported Barcelona target|
|Man behind Naomi Osaka´s rise wins WTA Coach of the Year|
|England name unchanged Test squad as Willey returns for West Indies ODIs|
|Spalletti: No issue with Icardi watching Superclasico in Madrid|
|Klopp confirms 2013 talks with ´chatty´ Napoli president De Laurentiis|
|Sri Lanka spinner Dananjaya suspended due to illegal action|
|His reaction was just brilliant – Klopp praises Sterling for response to abuse|
|Gomez renewal a ´smart decision´ for both parties – Klopp|
|Magnificent Molinari named European Golfer of the Year|
|Barcelona best option for Frenkie de Jong, insists midfielder´s father|
|Gronkowski on Miami Miracle: ´Got to make that tackle´|
|Tottenham youngster Walker-Peters signs on until 2023|
|Juventus ´more of a family´ than Real Madrid - Ronaldo|
|Kingsley Coman contemplates retirement if injury nightmare continues|
|McVay ´sick´ over offensive failings as Rams coach takes blame for loss|
|Calleja axed as Villarreal coach|
|Kenyan Drake on Miami Miracle: I couldn´t let Gronk tackle me!|
|Ronaldo: I deserved Ballon d´Or, the numbers don´t lie|
|Rugby Australia to make Cheika decision this month|
|England defender Gomez signs new Liverpool deal|
|Ronaldo wants to see Messi follow him to Italy|
|Neymar happy to play in any position for PSG - Draxler|
|Paine insists he is ´fine´ after taking blow to finger|
|Ponzio: River players will be ´idolised´ for Libertadores success|
|Champions League permutations: How Inter, PSG and Liverpool can progress|
|Kohli: India were better and deserved to win|
|Bears shut down Goff, Rams|
|India survive dramatic finish against Australia|
|Klopp calls for electric Anfield atmosphere against Napoli|
|Saints clinch back-to-back NFC South titles, Bears trump Rams|
|Bucks improve to 2-0 against Raptors with win in Toronto|
|Black Caps include Patel for Sri Lanka Tests|
|Maidana: River want Real Madrid clash|
|Cowboys top Eagles in OT behind stellar Cooper display|
|AC Milan evaluating Fabregas signing – Leonardo|
|WATCH: Steelers´ chance at game-tying field goal slips away|
|Hayne will plead not guilty to charges, says lawyer|
|Boca boss Schelotto: The only thing I feel is sadness|
|Cardinals´ Fitzgerald makes NFL history with most receptions for one team|
|River Plate´s Copa Libertadores star Gonzalo Martinez confirms January departure|
|Klopp: I was never worried about Salah´s form|
|Packers QB Rodgers sets NFL record for most passes without an interception|
|World Cup bulking hampered Man United form – Lukaku|
|Leonardo rules out Ibrahimovic Milan return|
|Warriors´ Green to return against Timberwolves|
|I feel for him… we´ll make it work – Butler responds to Embiid´s frustration|
|Torino draw no missed opportunity for misfiring AC Milan, claims Gattuso|
|We´ll always be linked together forever - Wade reflects on playing with James before final match-up|
|O´Sullivan wins record seventh UK title|
|Chiefs secure playoff berth, Saints win NFC South|
|River Plate 3 Boca Juniors 1 (aet, 5-3 agg): Quintero and Martinez clinch Libertadores title in extr|
|WATCH: Chiefs QB Mahomes throws no-look pass|
|Dolphins defeat Patriots on miraculous final play|
|Kizzire eagle snatches QBE Shootout victory|
|AC Milan 0 Torino 0: Donnarumma shines, Cutrone misses late chance|
|Back to the drawing board for West Indies - Chase|
|Copa Libertadores: Messi and Griezmann among stars in Madrid for River-Boca Superclasico|
|Brady sets NFL record for most career TD passes|
|Copa Libertadores: Tevez named on Boca bench for Superclasico final|