Cristiano Ronaldo scored his 23rd Real Madrid hat-trick as they swept aside Real Sociedad to move within three points of La Liga leaders Barcelona.

Ronaldo opened the scoring early with an angled finish before setting up striker Karim Benzema for the second.

The Portuguese forward's penalty put the game beyond the visitors and Gareth Bale fed Sami Khedira for the fourth.

Antoine Griezmann pulled one back with a rising finish but a Ronaldo free-kick wrapped up the win and his hat-trick.

Carlo Ancelotti's side have scored 15 goals in the last three league games, with Ronaldo scoring eight of them.

Ronaldo's 2013-14 hat-tricks

09 Nov, La Liga: Real Madrid 5-1 Real Sociedad

30 Oct, La Liga: Real Madrid 7-3 Sevilla

17 Sept, Champions League: Galatasaray 1-6 Real Madrid

06 Sept, World Cup qualifier: Northern Ireland 2-4 Portugal

The 28-year-old former Manchester United player now has 27 goals in 19 appearances for club and country this season, including four hat-tricks.

It was the perfect warm-up for his showdown with Zlatan Ibrahimovic, who also scored a hat-trick for Paris St-Germain, when Portugal face Sweden in a World Cup qualifying play-off, the first leg taking place in Portugal on 15 November.

Ronaldo was unlucky not to open the scoring in the seventh minute when his 25-yard effort hit the bar.

But he did not have to wait long to celebrate as he pulled down Benzema's deep cross before drilling past goalkeeper Claudio Bravo from a tight angle after 12 minutes.

Ronaldo then returned the favour six minutes later with a pull-back that the France international side-footed past Bravo to make it 2-0.

It was 3-0 after 26 minutes, Ronaldo winning a penalty when his low shot went through Markel Bergara's legs and hit the defender's trailing arm.

It was tough on Bergara but Ronaldo was not about to waste the chance as he fired home his second from the spot.

The game was as good as over for Sociedad at that point, but the agony was not and Bale set up Khedira to rifle home Madrid's fourth from the edge of the box with nine minutes of the first half remaining.

Madrid continued to push for more goals but it was the visitors who netted next when Griezmann neatly lobbed home a through-ball from Carlos Vela after 61 minutes.

That was as good as it got for Sociedad though, and Ronaldo completed the scoring - and yet another hat-trick - with a 25-yard free-kick with 14 minutes left.

The win closed the gap on Barcelona but the league leaders visit struggling Real Betis on Sunday.

Lineup, Bookings (3) & Substitutions (6)

Real Madrid

  • 25 López
  • 15 Carvajal
  • 17 Arbeloa Booked
  • 14 Alonso (Illarramendi - 70' )
  • 02 Varane
  • 03 Pepe Booked
  • 06 Khedira (Isco - 77' )
  • 19 Modric
  • 09 Benzema (Morata - 83' )
  • 11 Bale
  • 07 Ronaldo

Substitutes

  • 01 Casillas
  • 18 Nacho
  • 20 Jesé
  • 21 Morata
  • 22 Di María
  • 23 Isco
  • 24 Illarramendi

Real Sociedad

  • 01 Bravo
  • 02 Martínez (Ansotegi - 59' )
  • 20 José Ángel
  • 04 Elustondo (Zurutuza - 45' )
  • 03 González Booked
  • 06 Iñigo Martínez
  • 11 Vela
  • 05 Bergara
  • 08 Seferovic (De la Bella - 45' )
  • 10 Xabi Prieto
  • 07 Griezmann

Substitutes

  • 09 Agirretxe
  • 13 Zubikarai
  • 15 Ansotegi
  • 17 Zurutuza
  • 18 Castro
  • 23 Javi Ros
  • 24 De la Bella
Ref: Juan Martínez Munuera
Att: 77,427

Match Stats

Shots

17 9

On target

8 3

Corners

2 7

Fouls

16 9

Live Text Commentary

Full time

Full Time Match ends, Real Madrid 5, Real Sociedad 1.

90:00 +2:05 Full time

Full Time Second Half ends, Real Madrid 5, Real Sociedad 1.

90:00 +2:01

Attempt missed. Xabi Prieto (Real Sociedad) header from the left side of the box is too high. Assisted by Carlos Vela with a cross following a corner.

90:00 +1:47

Corner, Real Sociedad. Conceded by Daniel Carvajal.

87:08

Attempt missed. Álvaro Morata (Real Madrid) right footed shot from the centre of the box misses to the left. Assisted by Cristiano Ronaldo with a cross.

86:16

Corner, Real Sociedad. Conceded by Diego López.

86:15

Attempt saved. Carlos Vela (Real Sociedad) right footed shot from the right side of the box is saved in the top left corner.

84:16

Attempt missed. Antoine Griezmann (Real Sociedad) header from the right side of the six yard box is just a bit too high. Assisted by Ion Ansotegi with a headed pass following a corner.

83:52

Corner, Real Sociedad. Conceded by Diego López.

83:51

Attempt saved. Alberto De la Bella (Real Sociedad) left footed shot from outside the box is saved in the bottom left corner. Assisted by Xabi Prieto.

83:10

Foul by Daniel Carvajal (Real Madrid).

83:10

José Ángel (Real Sociedad) wins a free kick on the left wing.

82:11 Substitution

Substitution Substitution, Real Madrid. Álvaro Morata replaces Karim Benzema.

81:31

Attempt missed. Karim Benzema (Real Madrid) right footed shot from outside the box is close, but misses to the left. Assisted by Isco.

78:21

Álvaro Arbeloa (Real Madrid) wins a free kick in the defensive half.

78:21

Foul by Carlos Vela (Real Sociedad).

76:39 Substitution

Substitution Substitution, Real Madrid. Isco replaces Sami Khedira.

75:49 Goal scored

Goal! Goal! Real Madrid 5, Real Sociedad 1. Cristiano Ronaldo (Real Madrid) from a free kick with a right footed shot to the bottom left corner.

75:04 Booking

Booking Mikel González (Real Sociedad) is shown the yellow card for a bad foul.

74:54

Luka Modric (Real Madrid) wins a free kick in the attacking half.

74:54

Foul by Mikel González (Real Sociedad).

73:30

Sami Khedira (Real Madrid) wins a free kick in the attacking half.

73:30

Foul by Markel Bergara (Real Sociedad).

70:37

Foul by Álvaro Arbeloa (Real Madrid).

70:37

Carlos Vela (Real Sociedad) wins a free kick in the defensive half.

70:01

Foul by Sami Khedira (Real Madrid).

70:01

Markel Bergara (Real Sociedad) wins a free kick in the attacking half.

69:27 Substitution

Substitution Substitution, Real Madrid. Asier Illarramendi replaces Xabi Alonso.

68:55

Attempt missed. Antoine Griezmann (Real Sociedad) left footed shot from the centre of the box is close, but misses to the left. Assisted by Carlos Vela with a through ball.

68:18

Attempt missed. Gareth Bale (Real Madrid) with an attempt from the centre of the box misses to the right. Assisted by Xabi Alonso with a cross following a set piece situation.

67:30

Luka Modric (Real Madrid) wins a free kick on the right wing.

67:30

Foul by Markel Bergara (Real Sociedad).

66:53

Raphael Varane (Real Madrid) wins a free kick on the right wing.

66:53

Foul by José Ángel (Real Sociedad).

66:04

Attempt saved. Luka Modric (Real Madrid) right footed shot from outside the box is saved in the centre of the goal. Assisted by Karim Benzema.

65:16

Álvaro Arbeloa (Real Madrid) wins a free kick in the defensive half.

65:16

Foul by David Zurutuza (Real Sociedad).

62:20

Hand ball by Raphael Varane (Real Madrid).

61:52

Corner, Real Madrid. Conceded by Mikel González.

60:48 Goal scored

Goal! Goal! Real Madrid 4, Real Sociedad 1. Antoine Griezmann (Real Sociedad) left footed shot from the centre of the box to the top right corner following a fast break.

59:58

Foul by Karim Benzema (Real Madrid).

59:58

David Zurutuza (Real Sociedad) wins a free kick in the attacking half.

58:27 Substitution

Substitution Substitution, Real Sociedad. Ion Ansotegi replaces Carlos Martínez because of an injury.

57:51

Foul by Sami Khedira (Real Madrid).

57:51

David Zurutuza (Real Sociedad) wins a free kick in the defensive half.

56:45

Delay over. They are ready to continue.

56:15

Delay in match Carlos Martínez (Real Sociedad) because of an injury.

55:54

Attempt missed. Cristiano Ronaldo (Real Madrid) right footed shot from the left side of the box is close, but misses to the right. Assisted by Gareth Bale.

52:55 Booking

Booking Álvaro Arbeloa (Real Madrid) is shown the yellow card for a bad foul.

52:50

Foul by Álvaro Arbeloa (Real Madrid).

52:50

Carlos Martínez (Real Sociedad) wins a free kick in the defensive half.

51:02

Offside, Real Madrid. Pepe tries a through ball, but Karim Benzema is caught offside.

48:48

Attempt missed. Carlos Vela (Real Sociedad) left footed shot from outside the box is close, but misses to the left. Assisted by Xabi Prieto.

47:40

Corner, Real Sociedad. Conceded by Daniel Carvajal.

47:14

Corner, Real Sociedad. Conceded by Raphael Varane.

45:00

Second Half begins Real Madrid 4, Real Sociedad 0.

45:00 Substitution

Substitution Substitution, Real Sociedad. Alberto De la Bella replaces Haris Seferovic because of an injury.

45:00 Substitution

Substitution Substitution, Real Sociedad. David Zurutuza replaces Gorka Elustondo.

45:00 +0:05 Half time

Half Time First Half ends, Real Madrid 4, Real Sociedad 0.

44:42

Attempt missed. Gareth Bale (Real Madrid) header from the centre of the box is close, but misses to the left. Assisted by Álvaro Arbeloa with a cross.

43:37

Offside, Real Sociedad. Claudio Bravo tries a through ball, but Haris Seferovic is caught offside.

43:25

Attempt saved. Cristiano Ronaldo (Real Madrid) header from the centre of the box is saved in the centre of the goal. Assisted by Sami Khedira with a cross.

42:02

Foul by Gareth Bale (Real Madrid).

42:02

Iñigo Martínez (Real Sociedad) wins a free kick in the defensive half.

37:15

Delay over. They are ready to continue.

36:43

Delay in match Haris Seferovic (Real Sociedad) because of an injury.

36:20

Offside, Real Sociedad. Claudio Bravo tries a through ball, but Haris Seferovic is caught offside.

35:20 Goal scored

Goal! Goal! Real Madrid 4, Real Sociedad 0. Sami Khedira (Real Madrid) right footed shot from the centre of the box to the centre of the goal. Assisted by Gareth Bale.

30:47

Attempt missed. Gareth Bale (Real Madrid) left footed shot from the right side of the box is close, but misses to the right. Assisted by Luka Modric.

29:13

Attempt blocked. Antoine Griezmann (Real Sociedad) left footed shot from a difficult angle and long range on the right is blocked.

28:23 Booking

Booking Pepe (Real Madrid) is shown the yellow card for a bad foul.

28:12

Foul by Pepe (Real Madrid).

28:12

Carlos Vela (Real Sociedad) wins a free kick on the right wing.

27:14

Foul by Xabi Alonso (Real Madrid).

27:14

Carlos Martínez (Real Sociedad) wins a free kick on the right wing.

25:57 Goal scored

Goal! Goal! Real Madrid 3, Real Sociedad 0. Cristiano Ronaldo (Real Madrid) converts the penalty with a right footed shot to the centre of the goal.

25:09

Penalty conceded by Markel Bergara (Real Sociedad) with a hand ball in the penalty area.

25:08

Attempt blocked. Cristiano Ronaldo (Real Madrid) left footed shot from the left side of the box is blocked. Assisted by Luka Modric.

23:58

Offside, Real Madrid. Gareth Bale tries a through ball, but Sami Khedira is caught offside.

23:11

Offside, Real Madrid. Gareth Bale tries a through ball, but Álvaro Arbeloa is caught offside.

22:36

Foul by Álvaro Arbeloa (Real Madrid).

22:36

Xabi Prieto (Real Sociedad) wins a free kick on the right wing.

22:21

Foul by Luka Modric (Real Madrid).

22:21

Antoine Griezmann (Real Sociedad) wins a free kick on the right wing.

22:13

Foul by Álvaro Arbeloa (Real Madrid).

22:13

Antoine Griezmann (Real Sociedad) wins a free kick on the right wing.

20:18

Álvaro Arbeloa (Real Madrid) wins a free kick on the left wing.

20:18

Foul by Antoine Griezmann (Real Sociedad).

17:13 Goal scored

Goal! Goal! Real Madrid 2, Real Sociedad 0. Karim Benzema (Real Madrid) right footed shot from the centre of the box to the bottom right corner. Assisted by Cristiano Ronaldo.

13:30

Attempt saved. Cristiano Ronaldo (Real Madrid) right footed shot from the centre of the box is saved in the centre of the goal. Assisted by Gareth Bale.

12:57

Attempt blocked. Karim Benzema (Real Madrid) right footed shot from the left side of the box is blocked. Assisted by Luka Modric.

12:29

Foul by Karim Benzema (Real Madrid).

12:29

Markel Bergara (Real Sociedad) wins a free kick in the defensive half.

11:27 Goal scored

Goal! Goal! Real Madrid 1, Real Sociedad 0. Cristiano Ronaldo (Real Madrid) right footed shot from a difficult angle on the right to the bottom left corner. Assisted by Karim Benzema with a cross.

8:42

Corner, Real Madrid. Conceded by Claudio Bravo.

7:56

Álvaro Arbeloa (Real Madrid) wins a free kick on the left wing.

7:56

Foul by Gorka Elustondo (Real Sociedad).

6:59

Cristiano Ronaldo (Real Madrid) hits the bar with a right footed shot from long range on the left. Assisted by Luka Modric.

5:52

Foul by Luka Modric (Real Madrid).

5:52

Carlos Vela (Real Sociedad) wins a free kick in the attacking half.

4:33

Corner, Real Sociedad. Conceded by Pepe.

4:04

Foul by Daniel Carvajal (Real Madrid).

4:04

Markel Bergara (Real Sociedad) wins a free kick in the defensive half.

3:02

Corner, Real Sociedad. Conceded by Álvaro Arbeloa.

2:27

Offside, Real Madrid. Luka Modric tries a through ball, but Karim Benzema is caught offside.

0:00

First Half begins.

0:00

Lineups are announced and players are warming up.

Live data and text provided by our data suppliers