The match began with a tribute to Real Madrid's most successful player and manager, Luka Modric and Carlo Ancelotti, who will leave the club this summer. They were both honored by the Bernabeu faithful before the game.
However, Kylian Mbappe was focused on securing the European Golden Boot and was eager to score. He had a few chances, but Unai Marrero, Sociedad's goalkeeper, denied him with his first two attempts.
Sociedad, who had little to play for, still aimed to finish in the top half of the table for the seventh consecutive season. But Sergio Gomez's one-on-one chance against Andriy Lunin was saved.
Mbappe had another chance after being fed by Arda Guler, but he blazed over the bar. Marrero also saved Federico Valverde's shot.
However, Sociedad's Pablo Marin gave away a penalty just before halftime, and Mbappe scored the rebound after Marrero saved his initial spot-kick. This was Mbappe's 30th league goal of the season.
Sociedad showed little attacking ambition, and Mbappe continued to search for another goal. Marrero remained on good form and denied Mbappe several times.
But in the 83rd minute, substitute Vinicius Junior found Mbappe on the overlap, and he scored his second goal, slotting the ball inside the near post.
The final minutes were a celebration of the players leaving the club, including Luka Modric, Lucas Vazquez, and Carlo Ancelotti. The match also marked the end of Imanol Alguacil's tenure as Sociedad's manager and Mario Melero Lopez's 10-year stint as a La Liga referee.
Unai Marrero of Real Sociedad was named the Flashscore Man of the Match.