BARCELONA, Spain — Lionel Messi extended his Spanish league record by scoring in 17 straight games to cap Barcelona’s 2-0 win over last-place Deportivo La Coruna on Saturday.

Messi started on the Camp Nou bench with several other first-choice players, saved for the decisive Champions League last-16 match against AC Milan, but went on in the second half and scored two minutes from time with a delicate chip shot to double Barcelona’s lead after Alexis Sanchez opened in the 38th.

It was the four-time world player of the year’s league-leading 40th goal of the season and 51st overall.

Related

Barcelona hosts Milan on Tuesday, facing the daunting challenge of overturning a 2-0 loss in their first meeting to keep alive its bid for a fourth European title in eight seasons.

Barcelona’s 12th win in 13 league home games provisionally extended its league lead to 14 points over Atletico Madrid.

Meanwhile, Malaga’s winless run reached four consecutive games with a 1-1 draw at Valladolid as it continues to sputter before its Champions League match against FC Porto on Wednesday when it must come back from a 1-0 loss.

Messi on Barcelona’s bench was a rare sight as he rested up for Milan. It was just the second time he didn’t start a league game this season. In September, he went on late to score twice in a 4-1 win at Getafe. The only regular starters on the pitch for Barcelona were defenders Carles Puyol and Dani Alves and midfielder Cesc Fabregas.

Jose Pinto had a quiet night in goal after stepping in to replace Victor Valdes, who was serving the first of a four-match ban for protesting after the finish of Barcelona’s 2-1 loss at Real Madrid last weekend.

Even with the lineup shuffle, the 51-point gap separating the two sides at the start of the game was evident as Barcelona dominated possession and Deportivo failed to get a shot on goal through 90 minutes.

Alexis finally broke through when Deportivo left him unmarked to turn Dani Alves’ cross home with a bouncing header that Aranzubia got a hand on but couldn’t keep out of his net.

The Camp Nou crowd cheered as Messi began warming up early in the second half, and the applause grew when he went on in the 62nd. Andres Iniesta and Sergio Busquets joined him later.

Just when the nerves among the home fans began to fray with Deportivo showing signs of life, Messi put everyone at ease by gliding across the edge of the box before combining with Alexis, who returned the ball from the wing for the cutting Messi to deftly flip it over Aranzubia.

Deportivo is a shell of the side that pushed Barcelona before succumbing to a 5-4 loss earlier this season.

The Galician club appears doomed to be relegated after just emerging from one season in the second division eight points from safety with 11 rounds to go. It is the only team in Spain’s topflight division to have not won away from home this campaign.

In Valladolid, defender Martin Demichelis scored for Malaga in the eighth, only for Manucho to split the points in the 41st.

Malaga remained in fourth place, but opened the door for Valencia to grab control of the final Champions League spot if it beats Athletic Bilbao on Sunday.

Elsewhere, Rayo Vallecano beat visiting Espanyol 2-0 from goals by Alejandro “Chori” Dominguez and Francisco “Piti” Medina as the Madrid minnow stayed in upper part of the standings.