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).
|Cech accepts performances key to securing Arsenal stay|
|Monchi rules out Spain return amid Barcelona rumours|
|Durham skittled for 61 and 66 on the same day|
|Kane isn´t a machine – Lamela defends misfiring Spurs star|
|Hazard left out of Chelsea squad for PAOK trip|
|Tiger feels close to ending drought after achieving Tour Championship goal|
|Leno in line for Arsenal chance in Europa League|
|Gazidis leaves Arsenal in good shape, insists Emery|
|Eagles bring back WR Matthews, place Wallace on IR|
|England include Stokes, Hales and uncapped seamer Stone in ODI squad|
|Suwon Bluewings 0 Jeonbuk Motors 3 (aet, 4-2 on penalties): Quarter-final comeback ends in spot-kick|
|Australia captain Paine ready to slog it out with Pakistan|
|Nadal pulls out of China Open & Shanghai Masters with knee injury|
|Ostapenko begins Korea Open defence with victory|
|Joshua v Povetkin: How Olympic super heavyweight champions have fared|
|Liverpool ´made a point´ with PSG victory - Gomez|
|Osaka wows Tokyo crowd on WTA return|
|Excited Povetkin arrives in England for Joshua showdown|
|Kovac patience with Sanches set to reap rewards|
|Kovac: Madrid strong without Ronaldo, Messi is the best|
|ATP suspends umpire Lahyani over Kyrgios ´pep talk´ at US Open|
|North and South Korea seek to co-host 2032 Olympics|
|Ampadu signs long-term Chelsea contract|
|Don´t blame Neymar, PSG players all guilty - Thiago Silva|
|Real Madrid seek to plug Ronaldo scoring gap – Champions League in Opta numbers|
|Brewers allow Cardinals to inch closer with loss to Reds|
|Manchester is still red – Depay ahead of Lyon´s clash with City|
|Orioles become first pro team to wear braille jerseys|
|Klopp hails ´brilliant´ Henderson|
|PSG attack lacked aggression, says Tuchel|
|Atletico Tucuman 0 Gremio 2: Libertadores holders draw first blood in QFs|
|Thomas plays down wrist worry|
|Rakitic wants more from Barcelona hat-trick hero Messi|
|My players aren´t s*** – Pochettino defends Spurs squad|
|Cubs reliever Morrow won´t return this season|
|Tebow expected to be back in Mets organisation next season|
|Inter can compete against anyone – Icardi revels in Champions League victory|
|Tuchel: PSG loss to Liverpool not logical or correct|
|Sturridge in best shape I´ve seen – Klopp|
|Milojevic celebrates ´fantastic´ occasion after Red Star´s 26-year wait|
|Rodrigo and Simeone salute Griezmann display|
|Seahawks DE Clark on Bears QB Trubisky: He´s nothing special|
|Carroll says Wilson has been ´over-trying a little bit´|
|Judge returns to Yankees´ starting lineup|
|Napoli boss Ancelotti takes aim at Red Star time wasting|
|Favre admits young Dortmund stars struggled in Bruges|
|Otavio would trade goal for Porto victory as he bemoans Schalke draw|
|Championship Review: Pacesetters Leeds crush Preston, Villa end five-game winless run|
|Neymar world-class but not a defender - Klopp says Liverpool targeted PSG star|
|Waiters injury update: Heat guard unlikely to be ready for start of season|
|Gojowczyk eliminates returning Tsonga in Metz|
|Liverpool enjoying best start in 57 years after PSG win|
|Galatasaray 3 Lokomotiv Moscow 0: Terim´s side make light work of Russians|
|Club Brugge 0 Borussia Dortmund 1: Super sub Pulisic scores late winner|
|Schalke 1 Porto 1: Fahrmann saves one penalty, but Otavio scores another|
|Red Star Belgrade 0 Napoli 0: Points shared as Italians fail to make possession pay|
|Liverpool 3 Paris Saint-Germain 2: Firmino strikes late as Reds edge five-goal thriller|
|Monaco 1 Atletico Madrid 2: Costa and Gimenez seal comfortable win|
|Chaos reigns in Serie B as league denies suspension claim|
|India secure Asia Cup victory despite valiant Hong Kong effort|
|Messi makes "extraordinary routine", says Valverde after Barca star surpasses Ronaldo|
|Spalletti´s Inter to take heart from Tottenham turnaround|
|Casillas features in landmark 20th Champions League campaign|
|Spurs deserved more from best performance of the season - Pochettino|
|Brown absent from Steelers facility on Monday due to ´personal matter´|
|Toronto´s Bussey given eight-match biting ban|
|Barcelona 4 PSV 0: Marvellous Messi lights up Camp Nou|
|Inter 2 Tottenham 1: Icardi, Vecino complete dramatic late turnaround|
|Allegri, Chiellini defend Costa over spitting ban|
|Firmino only fit enough for bench duty|