Lionel Messi netted a hat-trick as Barcelona sealed the 2017-18 La Liga title with a 4-2 win over Deportivo La Coruna at the Estadio Riazor on Sunday.
It was not plain sailing for the Blaugrana as they were pegged back to 2-2 from 2-0 ahead, but Messi's late double eventually confirmed Barca's triumph, as well as Depor's relegation from the Spanish top flight.
Goals from the Argentinian and Philippe Coutinho had Barca cruising in the first 38 minutes, but Lucas Perez's 40th-minute strike gave the hosts hope.
They then equalised through Emre Colak in the 64th minute as they went in search of the three points that would keep them up for another week.
Hearts were broken in the Riazor, though, when Messi scored twice late on to condemn Depor to the drop.
Mixed Emotions on Night of Joy and Despair
In truth, Barca have been champions-elect for some time, while Depor have long looked primed for the drop.
However, when both triumph and disaster were finally confirmed Sunday, the reactions were inevitable.
Celebrations were enthusiastic from the visitors, while the hosts sunk to the turf in despair, especially after a huge effort against the best side in Spain was all for naught.
Philippe Auclair @PhilippeAuclair
Such an entertaining game between Depor and Barca, who are so close to remain unbeaten over a Liga season. I was told nobody cared (true or not?) in Spain, because of that aberrant night in Europe; if so, that is a shame - it'd be an extraordinary achievement in such a league.
Messi Makes the Difference
The Blaugrana were at sixes and sevens for a while after the equaliser and looked the more likely to concede.
But they slowly rediscovered their composure and took control once again.
It led to a quick-fire double from Messi in the 82nd and 85th minutes, both goals sublime and each brilliantly assisted by Luis Suarez.
The margin of victory was convincing in the end and, as ever, it was largely thanks to Messi.
Far from Routine for Barca
It was widely expected Barca would canter to victory at Depor, and when Coutinho netted an exquisite finish from the edge of the box after seven minutes, it seemed as though it would be a long night for Clarence Seedorf's men.
The misery was then exacerbated for Depor when Suarez clipped a sumptuous ball from the right to the far post for Messi to stab home in the 38th minute.
It was the Argentinian's 30th league goal of the campaign:
The visitors were cruising, but Perez pulled one back five minutes from the break as he swept home from 12 yards after a terrific move.
Colak then equalised in the 64th minute after a similarly fine passage of Depor play to send Barca briefly into chaos.
Barcelona may have wrapped up the title, but they still have a huge fixture coming up next weekend as they take on bitter rivals Real Madrid at the Camp Nou.
Depor, meanwhile, travel to Celta Vigo on Saturday.