Real Madrid won their first La Liga title in five years by beating Malaga 2-0 on the final day of the season on Sunday.
Cristiano Ronaldo put Madrid on their way with a goal in just the second minute before Karim Benzema made the lead comfortable in the second half to give the visitors a first Spanish league trophy under manager Zinedine Zidane.
With a draw enough to win the title, Madrid grabbed their chance immediately as Isco played in Ronaldo, who stepped around goalkeeper Carlos Kameni to provide the opening goal, his 14th strike in his last nine games.
Ronaldo had a chance to add a second goal in the first half but shot straight at Kameni, then after the break suffered a scare following a late tackle from Federico Ricca, though he was OK to continue.
The title was all but sealed in the 55th minute following a corner. Sergio Ramos' initial shot was saved but came back out to Raphael Varane, who fed Benzema to double the lead.
- CHAMPIONS! �� (@realmadriden) May 21, 2017
Madrid comfortably saw out the final minutes and lifted the trophy for the first time since 2011-12. They will have a chance to add to their haul this season when they defend their title as European champions against Juventus in the Champions League final on June 3.
Barcelona fought back from a two-goal deficit to beat Eibar 4-2 but ultimately fell three points adrift of Madrid in the title race.
Takashi Inui provided a shock lead for Eibar in the seventh minute and doubled the visitors' advantage on the hour mark.
But Barca hit back immediately as Neymar's shot came off the post into the path of David Junca, who redirected it over the line for an own goal.
Lionel Messi had a chance to equalise on 70 minutes only to see his penalty saved by Yoel Rodriguez, though Luis Suarez was able to level the score from close range three minutes later.
Two minutes after that, Ander Capa was sent off for bringing down Neymar in the box and this time Messi was on target from the spot to complete the comeback, before the Argentina star added another late on with a sliding shot from the middle of the box.
Ateltico Madrid brought down the curtain on the Vicente Calderon with a 3-1 victory over Athletic Bilbao.
Striker Fernando Torres, a boyhood fan of the club, scored twice as Diego Simeone's side made a lightning start to go 2-0 up inside 11 minutes.
Although Inaki Williams pulled a goal back with just under 20 minutes remaining, Atleti ensured the final three points at the stadium would be theirs when substitute Angel Correa scored its last-ever league goal.
Bilbao's defeat, coupled with a dramatic 2-2 draw for Real Sociedad at Celta Vigo, meant Sociedad guaranteed Europa League football next season thanks to a 93rd-minute Juanmi equaliser.
A penalty from Iago Aspas put Celta Vigo ahead but Mikel Oyarzabal levelled after 82 minutes before Andrew Hjulsager looked to have won it for Celta.
But Juanmi was left unmarked to head home a corner and secure the all-important point.
Villarreal secured fifth place in the table as an excellent performance brought them a 3-1 win at Valencia.
The visitors led in the first minute when former Spurs striker Roberto Soldado scored.
Nani levelled after the break, but Manu Trigueros was quickly on the mark to restore Villarreal's lead and Nicola Sansone added another to wrap the game up.