Cristiano Ronaldo and Gareth Bale played integral roles as Real Madrid picked up a nervy 3-2 derby win at Rayo Vallecano on Saturday.
The visitors looked to be on course for a big win after Ronaldo's double, which sandwiched a Karim Benzema strike, but two penalties in as many second-half minutes from Jonathan Viera put a different complexion on the match.
Real held on despite late pressure, closing the gap on leaders Barcelona to six points, leaving their hosts rooted to the foot of the table.
Rayo boss Paco Jemez made only one change from their defeat at Osasuna, bringing in Nacho Martinez for Alberto Bueno.
In contrast, Carlo Ancelotti continued to rotate his squad as he made six alterations from their win over Sevilla, with Xabi Alonso making his first start of the season.
Fresh from putting seven past Sevilla on Wednesday, Real appeared in clinical mood again and it took Ronaldo only three minutes to break the deadlock as he collected Luka Modric's pass and confidently placed an effort into the bottom far corner.
That strike was his 19th in 15 matches this season, making it his best start to a campaign, and although Rayo had a goal disallowed through Iago Falque, Real continued to stretch the hosts' defence.
Bale set up the next two goals at Estadio de Vallecas as his right-footed cross was headed past Ruben by Benzema after 31 minutes, the Frenchman's third goal of the week.
And the Welshman squared to Ronaldo three minutes into the second half for Real's third, with the visitors seemingly in cruise control.
But the rampant visitors saw their progress halted soon after as Dani Carvajal brought down Viera in the box and the striker picked himself up to convert the spot-kick after 53 minutes.
Remarkably, he was afforded the opportunity to reduce the deficit further just two minutes later – Marcelo the offender this time, fouling Falque after Joaquin Larrivey's header had come back off the crossbar.
Viera kept his cool to double his tally and bring it back to 3-2, with Real clearly rocking.
Jemez's side thought they had equalised with 25 minutes to go, but Diego Lopez tipped first-half substitute Bueno's effort on to the post.
Saul missed a glorious chance to equalise in the area with just over 10 minutes to play as he knocked wide while off balance, before Ronaldo forced Ruben into a smart double save at the other end.
Right-back Tito headed narrowly wide of Diego Lopez's post in stoppage time, but Real claimed the points to extend Rayo's losing streak against their illustrious neighbours to 11 matches.
|19||Jonathan Viera||53' 55'|
|Coach: Paco Jémez|
for Adrián 42'
for Arbilla 51'
for Iago Falqué 68'
|Falcao nets as brilliant Monaco hit Montpellier for six|
|Guardiola pleads patience for injury ravaged Kompany|
|No hard feelings as Mourinho focuses on Chelsea task|
|Guardiola: I don´t want City to play like Barcelona|
|Valencia fans´ Alcacer anger normal - Luis Enrique|
|Neymar: Playing for Barca is easy now|
|EPFL terminates agreement with UEFA|
|Aguero keeps Argentina spot, Messi returns|
|Donnarumma eyes Milan captaincy|
|Napoli fans banned from Juve trip|
|Mertesacker hails ´hungry´ hat-trick hero Ozil|
|Suarez says Barcelona renewal talks ´really advanced´|
|Lack of European football can aid Liverpool´s title bid - Pulis|
|European breaks do not benefit Chelsea - Conte|
|Pardew backs Leicester to ´come through´ tough start|
|Pochettino one of ´the very best´ coaches, says Howe|
|Puel backs Manchester City for Premier League title|
|Abramovich and I were not friends - Mourinho|
|It was not mutual consent, I was sacked by Chelsea - Mourinho|
|Brazil recall Douglas Costa, Marcelo and Casemiro for Argentina clash|
|Luis Enrique: If Messi is at his best, nobody knows how to stop him|
|Ramos deserves more than he earns - Perez|
|Neymar renewal proves Barcelona team spirit, says Luis Enrique|
|Bravo mistakes will be on the front page - Guardiola|
|I would sign Modric as Scholes´ successor - Giggs|
|At last! Neymar signs new Barcelona contract|
|Ronaldo injury helped Portugal to Euro 2016 success, says Abidal|
|Ronaldo injury helped Portugal to Euro 2016 success, says Abidal|
|Rummenigge blasts Premier League clubs for ´kidnapping´|
|Prandelli awed by Messi but ´dreaming big´ against Barcelona|
|Guardiola fumes at Aguero rumours after Barcelona omission|
|Conte: Mourinho deserves maximum respect|
|Moses happy for Conte chance after Mourinho struggle|
|Garcia dreaming of glory with lowly Marseille|
|Dawson back as Phelan expects Hull reaction|
|Conte declares Terry fit to face Mourinho´s United|
|Pardew: Why would I leave Palace for England?|
|Montella wants San Siro to strike fear into Juventus|
|Guardiola criticism ´political´, says Del Bosque|
|Ancelotti ready to unleash rampant Robben once more|
|Chelsea in a good position - Mourinho|
|Tuchel heartened by Reus return|
|Allegri wary of AC Milan after Inter ´whack´|
|Koeman hopes for Barkley ´wake-up call´|
|Melbourne City 2 Perth Glory 3: Keogh hat-tricks decider thriller|
|Dybala delighted to stay at Juve after rejected offer|
|Hughes eager to test Hull fragility|
|Carrasco extends Atletico contract|
|Moyes: I am under pressure - just like Guardiola|
|Wenger talks up Arsenal´s title credentials|
|Fuchs signs new Leicester contract|
|Guardiola doesn´t communicate - Benatia|
|Magical Messi from another planet, says awestruck Digne|
|Wenger pleased to see Ozil on goal trail as talks continue|
|Evra hails old rival Suarez as ´the best number 9´|
|Ranieri: I feel like a hybrid car|
|Falcao returns for Monaco|
|De Bruyne defends Guardiola tactics|
|Del Bosque: I rejected €10m offer from China|
|CONCACAF Champions League Review: Pumas, Dallas reach QFs|
|Alli like ´wild horse´ - Pochettino|
|Nani hails ´special´ Messi|
|Serious knee injury sidelines Hull´s Odubajo for six months|
|Mkhitaryan edging closer to comeback - Mourinho|
|Klopp: United game good prep for West Brom|
|Pogba praises Rooney after resounding win|
|Under-fire De Boer driven by reaching knockout stages|
|Pogba no longer Premier League´s ´worst´ player, mocks Mourinho|
|Austria Vienna spoil Totti milestone|
|Manchester United 4 Fenerbahce 1: Van Persie nets on return as Pogba stars|
|Puel rues unfortunate Inter defeat|
|Inter 1 Southampton 0: Candreva seals fortunate win for Inter|
|Buffon rules out club management after retirement|
|Mazzarri ´very happy´ about Holebas-Capoue row|
|Non-European city could host Champions League final - UEFA|
|Bradley calls for players to reconnect with fans|
|Pochettino lauds ´fantastic´ Howe|
|Frankfurt´s Russ eyeing return after tumour disease all-clear|
|Karanka insists Middlesbrough will not sit back against Arsenal|
|Atletico Madrid cannot sign players in January after FIFA deal|
|Koeman calls for greater Lukaku support|
|Suarez: Two goals at the Bernabeu were my best|
|Pochettino delivers mixed news on injury front|
|Karius has Klopp´s confidence|
|Suarez hopes to finish his career at Barcelona|
|Burnley suffer Defour injury blow|
|Marseille confirm Garcia appointment|
|No concerns for Ranieri as Vardy, Morgan and King miss training|
|Tony Pulis is Tony Pulis - Klopp not expecting surprises from West Brom|
|Garcia´s Roma contract terminated amid Marseille reports|
|Injured Pique ruled out for three weeks|
|Moyes the builder will fix Sunderland, says chief exec Bain|
|Walcott impressed by the ´new, aggressive´ Ozil|
|Bilic eyes Ayew injury boost|
|Bonaventura on Icardi saga: I´ll wait until I´ve won something before writing a book!|
|Van Persie: I may still be at Man Utd if Ferguson was in charge|
|Emery wants more from PSG despite victory|
|Muller: Bayern enjoyed PSV rout|
|Barcelona lose Alba and Pique to injury|
|Nolito: Messi made the difference|
|CONCACAF Champions League Review: Pachuca edge through, Timbers out|
|Ozil has ´taste´ for goals - Wenger|
|Renard, Morocco prepared for AFCON test|
|Guardiola: Barca loss not my worst|
|Luis Enrique hails ´decisive´ Messi|
|Pulisic, Green & Morris´ youth movement delight USMNT legend Jones|
|Clinical Barca point the way for Sterling and City|
|Sarri: Napoli making life hard for ourselves|
|That´s life for goalkeepers - Ter Stegen on Bravo woe|
|Schubert delighted with mature Gladbach display|
|Gunes not getting carried away after Besiktas upset Napoli|
|Lucas praises PSG response to stuttering start|
|Luis Enrique happy to rule in game of errors|
|Vitoria: Benfica face three more finals|