Madrid: A superb overhead kick in injury time from Julio Baptista completed a spectacular turnaround for Malaga who scored twice in the last four minutes to beat Getafe 3-2 on Saturday and take top spot in La Liga.
Ambitious Malaga, bankrolled by a Qatari billionaire, dominated the first half without creating a clear-cut chance but after the break Pedro Leon put Getafe ahead with an excellent volley from distance.
Veteran striker Ruud van Nistelrooy headed Malaga level but Nicolas Miku controversially restored Getafe's advantage with a header which also came off his hand.
Malaga appeared to be heading for defeat before Enzo Maresca slotted home in the 88th minute and then two minutes into injury time Baptista acrobatically gave them the three points.
Malaga have 13 points, the same as Valencia, but lead on goal difference.
Their stay at the top may be brief, however, with the likes of Real Betis and Barcelona both playing on Sunday.
"The scoreline was unfair and that made us fight even more for the winner," said Malaga coach Manuel Pellegrini.
"We did not close down properly for the first goal but the team did not give up and kept looking for the goal and we were able to equalise.
"Then after going behind again fortunately the goals came and I am very happy for Ruud van Nistelrooy and Julio Baptista. It was a great game against a strong rival. What we lacked was a little bit of precision with the final ball."
An early strike from Sergio Canales gave Valencia a 1-0 victory over Granada, the club's first win in three matches.
Valencia returned to winning ways after a draw against Barcelona and defeat by Sevilla.
Canales gave Valencia the perfect start with an angled strike from the edge of the area after just three minutes.
Valencia piled on the pressure early on with keeper Roberto Fernandez saving Granada on several occasions notably from Roberto Soldado and Ever Banega but the visitors gradually came into the game with Daniel Benitez their main danger.
In the second half Fernandez continued to be the busier keeper but his opposite number Vicente Guaita also got down to save well from Hassan Yebda and then minutes later Inigo Lopez hit the post.
Substitute Hernan Perez snatched a late equaliser for Villarreal whose poor start to the season continued with a 2-2 draw at home to Zaragoza.
Considered by many as the only team capable of pushing Barcelona and Real Madrid in the league they have struggled so far with only one victory in all competitions.
Coming into the game on the back of a 2-0 Champions League defeat by Napoli, Villarreal began the stronger team but Luis Garcia gave Zaragoza the lead against the run of play.
Giuseppe Rossi brought Villarreal back on level terms from the penalty spot but the visitors went into the break ahead with Pablo Barrera scoring from another counter-attack.
In an open game Villarreal earned a point through Perez nine minutes from the end.
Two penalties from Tomer Hemed gave Mallorca a 2-2 draw away to Osasuna.
Miguel Angel Nadal, the uncle of tennis star Rafael Nadal, took charge of the team following Michael Laudrup's resignation and Hemed put Mallorca in front with a spot kick but Raul Garcia responded with two headed goals for Osasuna.
With 10 minutes to go Hemed kept his cool again from 12 yards to give Mallorca a point.
On Sunday, Barcelona travel to rock-bottom Sporting Gijon still looking for their first away win of the season in La Liga after draws against Real Sociedad and Valencia.
"To win the title you need to win a lot of matches away from home. We are now faced with another very difficult game and it is down to us to break this poor run," said Barcelona coach Pep Guardiola.
Real responded after picking up just one point from two games with a 6-2 win over Rayo Vallecano and then beat Ajax 3-0 in the Champions League.
They travel to Espanyol with Kaka restored to the starting eleven after a long battle with injury and loss of form.
"I feel a debt to the club for always having stood by me, it would have been easier to leave but I never considered that. I have the dream of triumphing at Madrid and I want to achieve it," said the Brazilian.