The victory moved Los Blancos above Valencia into third spot in the table, but the reigning champions are still 16 points off league leaders Barcelona.
Zinedine Zidane's side will now switch their attentions to the European Cup as they prepare to welcome PSG to Madrid for the first leg of their last-16 tie on Wednesday night.
Read how it all unfolded in Sports Mole's minute-by-minute live commentary of the action below.
REAL MADRID: Navas; Carvajal, Ramos, Varane, Marcelo; Kroos, Modric, Asensio; Lucas, Benzema, Ronaldo
REAL SOCIEDAD: Rulli; Odriozola, Navas, Elustondo, De la Bella; Illarra, Zurutuza; Prieto, Canales, Oyarzabal; Juanmi
10 - At home, Real Madrid are unbeaten in their last 10 games against Real Sociedad in La Liga (W9 D1), their last defeat against them at Bernabeu was in May 2004 (1-4). Favourite. pic.twitter.com/VFgWb8SjvA— OptaJose (@OptaJose) February 10, 2018