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).
|MLS Review: Champions Toronto still winless, Atlanta crush Whitecaps|
|Lukaku: A lot of players will join Manchester United next season|
|I feel like I just woke up – Indian Wells finalist Federer explains slow start|
|High-flying Reds win third straight in Buenos Aires|
|Salah and Liverpool don´t fear Man City: We´ve beaten them!|
|What can I lose? - Mourinho defends criticism of Man Utd players|
|Mourinho accuses Manchester United of being scared to play|
|Mourinho delivers stinging Shaw criticism after FA Cup win|
|Haskell: England not good enough during Six Nations|
|Allegri waits on Chiellini update after Juve´s SPAL stalemate|
|Stenson leads by one with DeChambeau and McIlroy lurking|
|Racing put pressure on leaders Montpellier as Toulon are toppled|
|Klopp eases concerns over Can´s back complaint|
|Six Nations defeats make no difference to England mindset – Hartley|
|Matic was an island of personality - Mourinho questions United mentality|
|Del Potro demolishes Raonic to set up Federer final|
|He´s getting quicker on the Zimmer frame – Schmidt jokes about Best future|
|SPAL 0 Juventus 0: Scudetto charge halted by Serie A strugglers|
|Manchester United 2 Brighton and Hove Albion 0: Lukaku & Matic book semi-final spot|
|Fresh rib fracture for Cavendish but ´no serious injury´ after crash|
|Unbeaten Federer fights back to reach Indian Wells final|
|Klopp: Salah could be among world´s best, but don´t compare him to Messi|
|Woods hopes to still be within reach at Arnold Palmer Invitational|
|Championship Review: Wolves on the charge as Monk lifts Birmingham´s spirits|
|Twickenham boos will ´put me to sleep at night´, Jones claims|
|Salah threatening Rush´s record for goals in single Liverpool season|
|Hodgson hopes Zaha avoided injury|
|Snow causes Wakefield-Widnes abandonment|
|Liverpool 5 Watford 0: Inspirational Salah nets four as Reds bounce back|
|Lambert rues Everton´s ´offside´ opener in costly Stoke City defeat|
|Scotland´s late rally leaves Townsend feeling positive for the future|
|Wales hold off France to claim second behind Ireland|
|Man Utd bench Pogba & Sanchez for FA Cup quarter-final|
|Pardew: Evans loss key to Bournemouth defeat|
|Zarco breaks track record to claim Qatar pole after Rossi crashes in practice|
|Ireland had to make every moment count against England – Best|
|Salah breaks Torres´ impressive Liverpool record|
|We are not heroes one day and villains the next – Mourinho continues defence of Sevilla exit|
|Lions bounce back against Sunwolves, Stormers end miserable streak|
|Jones: England losing streak only natural|
|They have many players who´d get in my team – The Sevilla stars Mourinho should buy|
|Mario Gomez will not beg for World Cup place|
|England´s form continues to run cold in Twickenham snow|
|Nibali holds on in Milan-San Remo as Cavendish crashes again|
|Bournemouth 2 West Brom 1: Stanislas piles misery on Pardew|
|Buffon to play on for Italy as Di Biagio calls up uncapped duo|
|Huddersfield Town 0 Crystal Palace 2: Tomkins and Milivojevic secure priceless win|
|Stockdale makes history as ruthless Ireland win Grand Slam|
|Stoke City 1 Everton 2: Tosun at the double after Adam´s early dismissal|
|Simeone insists Atletico can survive injury crisis|
|Ireland´s Stockdale breaks Six Nations single campaign try record against England|
|Leipzig out to halt Bayern celebrations at Red Bull Arena|
|NFL Draft 2018: Jets acquire number three overall pick from Colts|
|Board accepts responsibility for West Ham woes, Brady claims|
|In-form Eriksen hopes he hasn´t hit Tottenham ceiling|
|Roma boss Di Francesco happy with Messi, Barca challenge|
|Bangladesh warned over ´unacceptable´ Colombo behaviour|
|The directors know where to find me - Gattuso awaits Milan talks|
|Laidlaw breaks Italian hearts in Rome|
|UMBC´s March Madness win earns everyone in USA free pizza|
|Zidane focused on Real Madrid players, not Neymar|
|Mourinho´s United rant recalls unhappy Madrid demise|
|Swansea City 0 Tottenham 3: Eriksen leads Kane-less Spurs into FA Cup semis|
|Valverde not worried about Barcelona legacy|
|Markelle Fultz´s return remains a mystery to Brett Brown|
|Bale is happy at Real Madrid, says Zidane|
|Spalletti seeks consistency as Inter prepare for final push|
|Absence of ´best in the world´ Busquets makes Rakitic key for Barca|
|I was out of the game - Halep offers no excuses for Osaka shock|
|Tigers spoil Slater´s 300th NRL game, wins for Penrith and Warriors|