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'
|Holman talks up A-League quality|
|CONCACAF Champions League Review: Red Bulls progress, Timbers win|
|Januzaj blow for Sunderland|
|Navas accepts blame for Dortmund equaliser|
|Sporting assistant Raul Jose pleased with win|
|Nuno left to regret slow start as Porto fail on English soil again|
|Simeone: I am not Griezmann´s mentor|
|Vardy rejected Arsenal due to style|
|Schmidt bemoans ´brutal´ Monaco equaliser|
|Ranieri doesn´t trust bookies over England job|
|Genesio worried wastefulness will cost Lyon in long run|
|Preud´homme admits Champions League too much for Club Brugge|
|Telegraph passes findings to FA after further corruption claims|
|Zidane: Draw difficult to accept|
|Pochettino delighted with in-form Son|
|Vietto undeterred by wasteful showing|
|Tuchel: Dortmund can still get better|
|Resilient Leicester display pleases Morgan|
|Glenn reflects on ´painful´ call to dismiss ´distraught´ Allardyce|
|Borussia Dortmund 2 Real Madrid 2: Late Schurrle strike salvages draw|
|Monaco 1 Bayer Leverkusen 1: Glik stunner snatches a point|
|Dinamo Zagreb 0 Juventus 4: Pjanic pilots comfortable victory|
|CSKA Moscow 0 Tottenham 1: In-form Son hits late winner|
|Copenhagen 4 Club Brugge 0: Delaney stunner helps Danish champions canter to victory|
|Sporting CP 2 Legia Warsaw 0: Magiera´s first game ends in defeat|
|Sevilla 1 Lyon 0: Ben Yedder seals win for Europa League holders|
|Leicester City 1 Porto 0: Slimani continues to haunt old foes|
|Shearer: Allardyce has made England a laughing stock|
|Howe, Pardew and Wenger among the contenders to succeed Allardyce|
|Emery´s PSG struggles give Ludogorets hope|
|Allardyce offers ´wholehearted apology´ for England shame|
|Lahm: ´Extraordinary´ Griezmann different to Lewandowski|
|Iniesta is the best in the world, claims Menotti|
|Irregular heartbeat ends Dempsey´s season|
|Bournemouth ´realistic´ over permanent deal for Wilshere|
|Guardiola warns against complacency|
|Allardyce and England part company after damning video|
|De Bruyne out for up to three weeks - Guardiola|
|Luis Enrique demands fast start at Gladbach|
|Ancelotti wary of Atletico threat|
|Al Ain 3 El Jaish 1: Caio capitalises on late error|
|Ter Stegen happy with solution to Bravo battle|
|Emery: PSG need time to gel|
|Hernandez: It was very difficult at Real Madrid|
|Derby stand down Pearson ahead of Cardiff match|
|Rodgers sympathises with ´poor guy´ Allardyce|
|Opponents are trying to get Ribery send off - Hoeness|
|Martino named Atlanta United head coach|
|Rodgers urges Celtic to have belief against City|
|Rodgers has made same impact as Guardiola - Brown|
|Benfica one of the best in Europe, warns Sarri|
|Menotti: Ronaldo never played in a team like Messi´s|
|Walcott happy to move on from Arsenal struggles|
|Champions League Matchday Two: Bayern hunt Atleti revenge|
|Coquelin facing three weeks out|
|Arsenal transfers beyond reproach, says Wenger|
|Schubert extends Gladbach contract|
|Lewandowski urges Bayern to learn from Atletico defeat|
|Griezmann feared Simeone to PSG was ´a done deal´|
|FA investigating Allardyce claims|
|Valencia keep Voro in charge for Atletico clash|
|One of Serie A´s all-time greats: The numbers behind Totti at 40|
|Toure brands FIFA ´complacent´ after racism taskforce closed|
|Emery expects Ronaldo to stay at Real Madrid|
|Tottenham not scared of Moscow trip - Alderweireld|
|Sessegnon signs with Montpellier|
|Rakitic delighted with form|
|Gameiro: I could have joined Barcelona|
|Stones talks up Celtic quality|
|Liverpool good enough to win title - Houllier|
|Klopp happy with Firmino in central role|
|Watford got bullied all over the pitch - Deeney|
|Nuno keen for Porto to end England misery|
|Legia boss Magiera set for whirlwind debut|
|´Terrific´ Burnley delight Dyche|
|Burnley 2 Watford 0: Landmark goals for Hendrick and Keane seal first win in four|
|Schmidt lauds hitman Hernandez|
|Klopp not banking on Liverpool winning title|
|Kroos plays down Ronaldo rage rumours|
|Confidence coursing through Copenhagen|
|Madrid form draws no concern for Zidane|
|Burki looking forward to ´dream´ Madrid clash|
|Juve and Higuain have work to do - Allegri|
|CSKA boss Slutski wary of Tottenham threat|
|Pochettino: Kane to return within three weeks|
|City youngster Diaz signs three-year deal|
|Aurier vows to ´continue working hard´ for PSG despite prison sentence|
|Tuchel expecting Ronaldo on top form|
|Ter Stegen eyes new Barcelona deal|
|Hazard: No excuse for Arsenal defeat|
|Cisse back in training with Auxerre|
|Hummels resumes training ahead of Atletico clash|
|Facing Barcelona´s MSN not a nightmare, insists Bravo|
|Thiago: Atletico defence best in the world|
|Alonso wants to end career at Bayern Munich|
|Ranieri went to Slimani for Porto advice|
|Draxler: Wolfsburg blocked my exit|
|Samoura defends abolishment of racism task force|
|Sampaoli backs Nasri for France recall|
|Gisdol ´twitching with joy´ at Hamburg presentation|
|Zanetti determined Inter will return to the top|
|Getafe sack Esnaider|
|Bartra happy with playing time at Dortmund|
|Aurier handed two-month prison sentence over police altercation|
|Klopp attributes Lallana´s fine form to hard work|
|Totti´s wife slams ´small man´ Spalletti|
|Guardiola has already done an amazing job at Manchester City - Alonso|
|Referees attacked by hooligans in Bosnia and Herzegovina|
|Griezmann: I am not the anti-Benzema|
|Sterling hails Guardiola´s role in goalscoring form|
|Champions League Matchday Two: Madrid look for first win in Dortmund|
|Smalling confident Rooney will bounce back|
|Vardy fears ´permanent stain against my name´ following casino incident|
|Brave Wilshere will reap rewards of loan move - Howe|
|MLS Review: Sounders surprise Galaxy, Kamara double sinks New England|
|Walcott a special case - Wenger|
|Guardiola striving for more after perfect 10|
|Chelsea risk another mid-table finish, admits Conte|
|Montella feels AC Milan lacked courage|