Madrid were crowned champions of Spain for the 34th time on Wednesday night thanks to a 2-1 win over Villarreal.
But even if Zinedine Zidane’s side had lost the match, they still would have ended the night with the title after Barcelona slumped to a shock 2-1 defeat at home to Osasuna.
José Arnáiz put Osasuna 1-0 up in the 15th minute before Messi levelled the scores just after the hour-mark with a sumptuous free-kick.
However, Roberto Torres popped up with the winner in the fourth minute of stoppage-time to earn the visitors a 2-1 victory.
Messi, who was understandably frustrated and disappointed after the final whistle, voiced his frustrations in an interview with the Spanish media.
Zinedine Zidane says sealing a first La Liga title with Real Madrid in three years has made him happier than winning the Champions League.
Real wrapped up the title with a game to spare as they edged past Villarreal at an empty Alfredo Di Stefano Stadium.
Karim Benzema fired between the legs of Sergio Asenjo and added a controversial second from a retaken penalty.
In bizarre fashion, Sergio Ramos had rolled the first attempt for Benzema to smash in but the effort was disallowed.
Vicente Iborra pulled one back but it mattered little to Real as the club wrapped up their 34th Spanish title.
Zidane’s side have won all 10 of their matches since Spanish football restarted in June, BBC Sport said.
They head into the final day of the season with an unassailable seven-point lead over second-placed Barcelona.
“This is better than anything. It takes a tremendous effort to win La Liga,” said the Real Madrid boss.
“After 38 matches, you have more points than anyone else. After lockdown and everything, it’s astonishing.”
Behind closed doors in a 6,000-seat stadium at the club’s training complex is perhaps not the stage for the grand crowning Real would have imagined for their first title since 2017.
But that did not stop Zidane’s squad pulling on shirts with “Campeones 34” printed on the back before lifting the trophy in celebration as ticker tape fell over the pitch.
“Today is one of the best days for me as a professional,” said Zidane. “After everything that happened, the three-month break, it is fantastic what has been achieved.”
La Liga titles have been in shorter supply than Champions League triumphs for Real this decade, with this only their third in the past nine seasons.
They won three successive European Cups in Zidane’s first tenure but had recorded successive third-place finishes since their previous domestic title, as Barcelona were crowned champions.
Zidane was in charge the last time they won the league and made it his aim to reclaim the title after returning midway through the last campaign – less than a year after his departure.
It looked as if the Frenchman’s side would fail to deliver on that objective when football in Spain was suspended because of the coronavirus pandemic in March, with Barcelona top of the table.
But Real have been in scintillating form since the restart and did not look like losing after Benzema’s opener on Thursday. His second from the spot put the game beyond Villarreal’s reach, despite a nervy final few minutes.
In the end, Barcelona’s defeat by Osasuna made the victory a little more comfortable but no less significant for Zidane, who was hoisted into the air by his players.
Real’s title-winning moment looked like set to be relatively straightforward. Step forward Sergio Ramos.
The defender was brought down as he entered the Villarreal box after a marauding run and, after a VAR check, put the ball down on the spot.
The Los Blancos captain has netted 10 times in La Liga this season but, rather than go for his 11th, dummied to strike the ball and instead rolled it to his right for the onrushing Benzema.
The forward fired past an unsuspecting Asenjo, only to for referee Alejandro Hernandez to blow his whistle for infringement – presumably by Benzema.
Real were given the option to take the penalty again and this time Benzema converted to make it 2-0.
Iborra then headed in seven minutes from time before substitute Marco Asensio thought he had re-established Real’s lead, but Benzema had handled in the build-up.
“It has been a strange season but our objective was very clear once the league restarted,” said Ramos afterwards.
“We wanted to win every game. This is the reward for all our hard work. 34 leagues, my fifth title.
“Zidane has been key, he is the captain of the ship and led us from the start of the season – we have always felt protected with Zizou. He is a unique coach.”
‘La Liga makes me happier’
Zidane’s focus will now switch to Champions League opponents Manchester City. The La Liga champions travel to Etihad Stadium on 7 August trailing 2-1 from the first leg.
But not until he has savoured the second league win of his managerial career.
“The Champions League is the Champions League but La Liga makes me happier, because La Liga is what it’s all about,” said Zidane.
“This is a tremendous feeling because what these players have done is incredible. I am lost for words because I am too emotional.
“The players are the ones who have fought for this. It’s true I’ve played my role but they are the ones who believe in what they are doing.”
Real have been playing at their reserve stadium while the Santiago Bernabeu is renovated and will not be doing their usual open-top bus parade to the Cibeles fountain in the centre of Madrid because of current safety concerns.
“It’s strange for everybody, we would have liked to have been with our fans at Cibeles but it’s not meant to be,” added Zidane.
“But I’m sure everyone is happy in their homes tonight. The fans always love to see the team win and we’ve done this for them.”