Real didn't have to wait too long for their third goal when Toni Kroos calmly slotted into the bottom corner just moments after Ronaldo had struck the crossbar.
Real's big victory over Sociedad took them third above Valencia but they trail Barcelona by 16 points as they turn their attention to the defence of their Champions League title against Paris St Germain at the Bernabeu on Wednesday.
"He lives and breathes goals".More news: Kim Jong Un invites South Korean President Moon to Pyongyang
"The important thing is that he thinks about the next match, which will change his streak".
Real Madrid have been slowly, methodically putting together a semblance of good form again of late, shrugging off getting dumped out of the Copa del Rey early and refocusing their efforts on a climb back up the La Liga rankings.
Sociedad got themselves on the scoresheet in the 74th minute, Mikel Oyarzabal setting up Bautista to slot past Keylor Navas, and Illarramendi took advantage of sloppy defending to add their second.More news: Olympics Opening Ceremony highlights: A unified Korea, oiled-up Tongan, fake Trump
Ronaldo then completed his hat-trick, pouncing to finish after Geronimo Rulli had spilled a shot from Bale, on as a substitute.
"It's a very hard game, I am a Real Madrid ambassador and obviously I want them to win, but on the other hand I like PSG and my great friend Neymar is there, and everyone loves him", Ronaldo added. Subs: Isco (on for Vazquez, 63) 7, Mateo Kovacic (on for Modric, 63) 6, Gareth Bale (on for Asensio, 73) 6. - Lucas Vazquez has scored six goals this season in all competitions, his best goal tally in single campaign for Real Madrid.
- Ronaldo has scored in each of his seven league games against Real Sociedad at Santiago Bernabeu (15 goals in total).More news: Rabita Committee sacks Dr Farooq Sattar as MQMP convener
- Russia, Turkey to enhance military coordination in Syria
- Kyle Busch leads Joe Gibbs Racing sweep in first Daytona 500 practice
- North Korea confirms dismissal of top military general
- Russian plane crashes near Moscow, killing 71 people: agencies
- Eleven Turkish troops die, chopper down in deadliest day of Kurdish offensive
- President Trump reportedly expected to declassify Democratic rebuttal of controversial GOP memo
- Indian PM makes historic visit to Palestine
- United Nations chief calls for immediate de-escalation in Syria
- Tom Brady Reflects On Super Bowl Loss In Emotional Instagram Post
- U.S. wins first-ever Olympic medal in men's singles luge