MADRID (AFP) - Real Madrid manager Jose Mourinho was booed by the majority of a sparse home crowd as he ended his three-year spell in charge with a 4-2 win over Osasuna.
And Barcelona also rounded off their league season with a 4-1 win over Malaga to match Real's league record of 100 points from last season on the final day of the campaign in Spain.
Mourinho's name was met with a chorus of whistles when it was read out before kick-off, but he did receive support from a small group of the club's ultra fanbase who chanted his name throughout the match.
On the field it looked as he would be given a good send off as first-half goals from Gonzalo Higuain and Michael Essien gave Madrid a comfortable 2-0 lead.
However, Osasuna struck back with two goals in 11 minutes just after the restart through Roberto Torres and Alvaro Cejudo to level matters.
But Mourinho was able to sign off with a win as further goals from Karim Benzema and Jose Maria Callejon ensured Real ended the season unbeaten at home in the league.
With the Portuguese's appearance on the touchline for the final time the main attraction, the game even had to be stopped after barely a minute as the photographers and cameramen surrounding the technical area spiled over onto the pitch.
After a slow start from the hosts, in which Osasuna missed a number of opportunities to take the lead, Real went in front through Higuain just after the half hour mark.
The Argentine, who was captain for the day in what is expected to also be his last game in a Real shirt, raced onto Luka Modric's through ball and calmly slotted home for his 16th league goal of the campaign.
Three minutes later it was 2-0 as Essien headed home from Mesut Ozil's corner and made a point of going to celebrate just his second Madrid goal with Mourinho on the bench.
Osasuna were handed a lifeline seven minutes into the second-half when Torres fired into a wonderful right-footed shot low into Jesus' far corner.
And remarkably the Navarrans were level just after the hour mark as a cross from the left was flicked on by Manuel Omwu and headed back across Jesus into the net by Cejudo.
It took just six minutes for Madrid to re-take the lead though as Ozil fed Benzema and his driven effort found the far corner of the net despite Asier Riesgo getting a hand to it and Callejon sealed the points three minutes from time with a low drive that slipped through the legs of substitute keeper Roberto.
Barcelona meanwhile rounded off their championship winning season in style as a first-half blitz saw them dispose of Malaga 4-1 at the Camp Nou.
Goals from David Villa, Cesc Fabregas and Martin Montoya in the opening 16 minutes got the hosts off to the best possible start.
Andres Iniesta then made it 4-0 seven minutes into the second-half before Pedro Morales got a consolation goal for the hosts five minutes later.
And there was also time Eric Abidal to make an emotional final appearance for the club as he replaced Gerard Pique for the final 15 minutes.
The Frenchman announced on Thursday that he was to leave the club when his contract is up at the end of the season after only returning to first-team action back in April after a 14-month absence due to a liver transplant.