BARCELONA, Spain — Cristiano Ronaldo scored his Spanish league-leading 25th goal to give Real Madrid a lackluster 1-0 win at Malaga on Saturday, when the pacesetters extended their unbeaten run to 30 consecutive matches in all competitions.

Ronaldo netted the winner in the 23rd minute, and a tired Madrid was fortunate Malaga failed to muster a comeback after pushing the visitors into their area for the final 10 minutes.

Madrid's victory increased its lead over Atletico Madrid to six points before its closest chaser hosted Espanyol late.

Third-place Barcelona will enter Sunday's match against Osasuna seven points behind Madrid with the two powerhouses set to clash in the Spanish capital next weekend.

Madrid's win was tarnished by the loss of Karim Benzema to an apparent leg injury after colliding with Ronaldo in the first half.

"We suffered, above all in the second half," Madrid midfielder Xabi Alonso said. "They pressed us and it was tough for us to move the ball. These are three important points. There are 10 games left and we have to play each one like it's the last."

The opening stage of the match at La Rosaleda Stadium saw a vibrant back-and-forth exchange before Ronaldo put Madrid ahead with a wonderful solo effort.

The Ballon d'Or winner looked to be hemmed in by two defenders on the edge of the area, but he took three touches to his right and lashed a bouncing strike beyond goalkeeper Willy Caballero. Ronaldo's goal gave him 39 goals in 36 games in all competitions this campaign.

Ronaldo went close twice more shortly after, first being blocked by Caballero and then sending Gareth Bale's lobbed pass into the side netting before he ran into Benzema.

Benzema was treated on the sideline by team doctors before he asked to be substituted, ceding his spot to Angel Di Maria, in the 31st.

Former Malaga standout Francisco "Isco" Alarcon, who joined Madrid this summer, wasted a golden chance in the 51st when he sent the ball sailing high after Di Maria set him up for a one-on-one with Caballero. Isco was applauded by his former fans when replaced by Jese Rodriguez less than 10 minutes later.

Madrid, so dominant in the first half, lost control of the ball and Malaga tilted the match in its favor led by tireless forward Nordin Amrabat. But defender Sergio Sanchez blasted his team's most promising opportunity to level high in the 76th.

Madrid next hosts Schalke on Tuesday with one foot in the Champions League quarterfinals after winning their first meeting 6-1.

Rayo won thanks to Joaquin Larrivey's double after Alberto Bueno headed in the opener. Fernando Soriano scored for Almeria.

Rayo rose three points above danger. Almeria was left in the drop zone along with Valladolid and Real Betis before they play on Sunday.

Celta forward Manuel "Nolito" Agudo scored from a well-orchestrated counterattack in the 19th for what proved to be the winner before both goalkeepers made several saves.

Goalie Keylor Navas stretched his leg to block Nolito's powerful volley seconds before Levante forward Victor Casadesus dribbled through two defenders and was fouled by Jonathan Castro in the area.

But David Barral fired the spot kick off the bar in the 61st and Celta goalie Yoel Rodriguez denied him what looked to be a sure goal by smothering a short-range effort on the line.

The loss was Levante's first in seven home games. Both teams stayed in the middle of the standings.