The England midfielder helped the team end a four-year stretch without a major trophy, giving Madrid its 30th league title.
And, fittingly, Madrid won at the expense of rival FC Barcelona.
Madrid beat Mallorca 3-1 Sunday with an inspiring run characterized by late rallies spurred on by both Beckham and Ruud van Nistelrooy - both former Manchester United players.
Barcelona, which had won the last two titles, beat Gimnastic Tarragona 5-1 on the final day of the season, but Madrid claimed the title on head-to-head results.
Beckham was replaced Sunday before Madrid started it's comeback - it was his substitute, Jose Antonio Reyes, that scored two of the three goals - but the title will always be linked to the England midfielder.
Madrid coach Fabio Capello benched Beckham after the Englishman signed a contract to play for the Los Angeles Galaxy.
But when Beckham finally returned to the lineup weeks later, he scored in a 2-1 win over Real Sociedad. Madrid lost only once in its next 17 games.
"A major fault of mine this season was not recognizing Beckham's potential," Capello said Sunday. "It was the biggest mistake, the most regretting."
Beckham's playing time wasn't the only problem Madrid overcame.
In February, the team was in fourth place, six points behind Barcelona. In early March, Madrid was knocked out of the Champions League in the second round for the third straight year.
And two days after the Champions League exit, defender Roberto Carlos announced he would be leaving at the end of his 10th season. Ronaldo, another Brazilian, had left in January for AC Milan.
But Madrid's turnaround really took off during a league match at Barcelona in March, when an inspired team performance saw Madrid draw 3-3 at the Nou Camp.
After that game, Beckham's crosses were consistently finding their targets, and Madrid went undefeated in the 11 games he played after being reinstated by Capello.
Fans also quickly forgot about Ronaldo as Van Nistelrooy scored 10 times in the last eight games to clinch the Pichichi award for the league's top scorer with 25 goals.
Now, as players and coaching staff take a victory lap to Plaza Cibeles - the customary city-center celebration gathering place - more major trophies will be expected at the Santiago Bernabeu stadium next season despite the exit of Beckham and Roberto Carlos, and perhaps even Capello.
When General Wesley Clark spoke about the famous list of seven Middle Eastern countries to be demolished in five consecutive years, he has done nothing but remark, for the last time, if there was any need, Washington's willingness to redesign the Middle East within a more general framework of global domination.
In the region and in the worldб America and China seem to have become the major rivals. The Asia-Pacific region seems to have become the main area of this rivalry