Match ends, Málaga 0, Real Madrid 2.
Real Madrid won their first La Liga title since 2012 thanks to a final-day victory at Malaga.
Cristiano Ronaldo scored early on to settle the nerves, latching onto Isco's through ball to step around Carlos Kameni and tap into an empty net.
Karim Benzema added their second goal after the break after Kameni parried Sergio Ramos' shot.
Real, who had only needed a point, now face Juventus in the Champions League final looking to complete a double.
Barcelona, who had won the past two titles, came from 2-0 down to beat Eibar 4-2 but they had needed Real to slip up if they were going to retain the trophy.
The result means Zinedine Zidane, in his first full season as Real boss, is the first manager to lead Madrid to the Spanish league title since Jose Mourinho five years ago.
If Real beat Juventus in Cardiff, they will become the first team to successfully defend the Champions League - with Zidane having won the tournament six months into the job last summer.
Never in doubt for Real
Real Madrid are deserved champions, having been the best team in Spain - and probably Europe - for most of the season.
Their squad is starting to look less reliant on Benzema, Ronaldo and Gareth Bale, who was out injured - even though the first two players scored their goals at Malaga.
Isco, who was impressive again, and Alvaro Morata have shown themselves to be quality players when given the chance.
When Barca beat Real in El Clasico on 23 April, it gave renewed hope for an exciting title race - but Real won their last six games to win the league by three points.
And there was never any title peril on the final day once Ronaldo rounded Kameni to score the second-minute opener.
Malaga had chances, with former Barca striker Sandro impressive. But with nothing to play for themselves, they never really looked like winning.
'The league is everything'
Real Madrid coach Zinedine Zidane: "It was very important [to win the league]. It was a lot of years without winning it and we knew that the league is everything.
"For Real Madrid, because it is the best club in the world, we have to return with this league title.
"He [Ronaldo] is always there to make the difference and I am happy for him - it is a little different because he is always there to do it.
"It has been a difficult season that we worked hard for, with some tough moments, but after 38 games we are top and that is it.
"The Spanish league is the best in my opinion and to win it in this way is incredible - I am very happy."
Title stats - Real end longest title drought since 1994
- Real have ended their longest run without a title (four seasons) since 1994
- Real have scored in all of their games in a single La Liga season for the first time ever
- The Whites have scored 58 goals away from home, their best return in a single La Liga season
- Real have scored in their last 64 games in all competitions, the best run by a team from the top five European leagues
- Cristiano Ronaldo is the all-time top-scorer in the top five European leagues (369), surpassing Jimmy Greaves (366)
- 19 different players have scored for Real Madrid in La Liga this season, a joint-record in Europe's top five leagues with Celta Vigo
- Real have scored 27 headed goals in La Liga, the most for a team in a single top-flight season since at 2003-04
- Zinedine Zidane is the sixth former Real Madrid player to win La Liga as manager, after Bernd Schuster, Vicente del Bosque, Jorge Valdano, Luis Molowny and Miguel Munoz
- 1KameniBooked at 56mins
- 20Gontán GallardoSubstituted forCastroat 60'minutes
- 14García del Pozo
- 21Rodríguez MenéndezBooked at 57minsSubstituted forBarbosa Valenteat 72'minutes
- 19RamírezSubstituted forDiasat 69'minutes
- 7Pérez López
- 17Barbosa Valente
- 14CasemiroSubstituted forKovacicat 66'minutes
- 22IscoSubstituted forRodríguezat 66'minutes
- 9BenzemaSubstituted forMorataat 73'minutes
- 7Cristiano Ronaldo
- Ricardo de Burgos Bengoetxea
- Shots on Target
Second Half ends, Málaga 0, Real Madrid 2.
Offside, Málaga. Recio tries a through ball, but Charles Dias is caught offside.
Attempt missed. Charles Dias (Málaga) header from very close range is too high. Assisted by Gonzalo Castro with a cross following a corner.
Corner, Málaga. Conceded by Raphael Varane.
Attempt saved. Gonzalo Castro (Málaga) left footed shot from the left side of the box is saved in the centre of the goal. Assisted by Pablo Fornals.
Attempt missed. Marcelo (Real Madrid) left footed shot from the left side of the box is too high following a corner.
Corner, Real Madrid. Conceded by Carlos Kameni.
Attempt saved. Luka Modric (Real Madrid) right footed shot from the centre of the box is saved in the bottom right corner. Assisted by Danilo.
Attempt saved. Álvaro Morata (Real Madrid) right footed shot from the left side of the box is saved in the centre of the goal. Assisted by Mateo Kovacic.
Attempt missed. Marcelo (Real Madrid) right footed shot from outside the box is high and wide to the right. Assisted by Luka Modric.
Attempt missed. Charles Dias (Málaga) right footed shot from the left side of the six yard box misses to the left. Assisted by Federico Ricca with a cross.
Attempt missed. Charles Dias (Málaga) header from the centre of the box is too high. Assisted by Federico Ricca with a cross.
Foul by Recio (Málaga).
Sergio Ramos (Real Madrid) wins a free kick in the attacking half.
Corner, Real Madrid. Conceded by Luis Hernández.
Attempt missed. Ignacio Camacho (Málaga) header from the centre of the box is just a bit too high. Assisted by Gonzalo Castro with a cross.
Attempt missed. Pablo Fornals (Málaga) right footed shot from outside the box is too high following a corner.
Corner, Málaga. Conceded by Cristiano Ronaldo.
Attempt blocked. Pablo Fornals (Málaga) left footed shot from outside the box is blocked.