Match ends, Real Madrid 4, Real Sociedad 1.
David Moyes's first visit to the Bernabeu ended in defeat as Real Madrid came from behind to extend their lead at the top of La Liga.
Real Sociedad boss Moyes saw his side make the ideal start as Aritz Elustondo headed them in front after 38 seconds.
But despite missing the banned Cristiano Ronaldo, Real equalised through a James Rodriguez header before Sergio Ramos made it 2-1 at half-time.
Karim Benzema then struck twice as Sociedad stayed winless away from home.
Moyes had wanted his first taste of the Bernabeu to be as a winner and the former Manchester United and Everton boss cannot have enjoyed the experience as he lost for the first time in seven meetings with Real's former Chelsea manager Carlo Ancelotti.
Under Moyes, Sociedad had pulled away from relegation trouble with just one defeat in their previous six league games.
Moyes had overseen a win over Barcelona at the start of January to further enhance his reputation in Spain.
A famous double was only briefly on the cards with Elustondo heading home a cross from Ruben Pardo's early corner.
The lead lasted only two minutes before Rodriguez nodded in a Marcelo cross and Sociedad's cause wasn't helped when top scorer Carlos Vela went off injured after 17 minutes.
Real continued to create chances with Gareth Bale twice going close before they did go in front when Ramos collected a loose ball in the penalty area to fire home his sixth goal of the season.
Bale missed another opportunity when he shot wide of an open goal just before the break but the Welshman had a hand in the third goal as he set up Benzema to locate the bottom corner with a left-foot shot six minutes into the second half.
The league leaders were dominant throughout and signed off with a fourth goal 15 minutes from the end when Benzema collected an Isco pass to steer a shot into the top corner to move to 17 for the season.
Real Madrid are now four points clear of Barcelona, who host Villarreal on Sunday.
- 12MarceloBooked at 70mins
- 10RodríguezSubstituted forRodríguez Ruizat 74'minutes
- 24IllarramendiBooked at 31mins
- 8KroosSubstituted forKhediraat 81'minutesBooked at 88mins
- 9BenzemaSubstituted forHernándezat 81'minutes
- 5da Silva Coentrão
- 20Rodríguez Ruiz
- 34ElustondoSubstituted forBergaraat 62'minutes
- 6Martínez Berridi
- 19Berchiche IzetaBooked at 88mins
- 14Pardo Gutiérrez
- 10Prieto Argarate
- 16CanalesSubstituted forDe la Bellaat 45'minutes
- 11VelaSubstituted forAgirretxeat 17'minutes
- 20Zaldúa Bengoechea
- 24De la Bella
- Alfonso Álvarez Izquierdo
- Shots on Target
Second Half ends, Real Madrid 4, Real Sociedad 1.
Attempt blocked. Gareth Bale (Real Madrid) right footed shot from the centre of the box is blocked. Assisted by Jesé.
Attempt missed. Markel Bergara (Real Sociedad) right footed shot from the centre of the box misses to the left.
Foul by Sergio Ramos (Real Madrid).
Xabi Prieto (Real Sociedad) wins a free kick in the attacking half.
Attempt missed. Gareth Bale (Real Madrid) header from the centre of the box is close, but misses to the right. Assisted by Jesé with a cross following a corner.
Corner, Real Madrid. Conceded by Mikel González.
Sami Khedira (Real Madrid) is shown the yellow card.
Yuri (Real Sociedad) is shown the yellow card.
(Real Madrid) wins a free kick on the right wing.
Yuri (Real Sociedad).
Attempt blocked. Isco (Real Madrid) left footed shot from outside the box is blocked.
Isco (Real Madrid) wins a free kick in the defensive half.
Foul by Esteban Granero (Real Sociedad).
Corner, Real Madrid. Conceded by Gerónimo Rulli.
Attempt saved. Gareth Bale (Real Madrid) left footed shot from the left side of the box is saved in the centre of the goal.
Substitution, Real Madrid. Sami Khedira replaces Toni Kroos.
Substitution, Real Madrid. Javier Hernández replaces Karim Benzema.
Attempt blocked. Gareth Bale (Real Madrid) left footed shot from outside the box is blocked. Assisted by Isco.