The visitors put up a stiff defense in the first half, but were undone by Clement Lenglet's header on the stroke of halftime and although Juanmi leveled the score in the 62nd minute following a pass from Mikel Merino, Jordi Alba put Barca back in front nearly immediately afterwards with a right foot shot.
Lionel Messi was brilliant for the goal as he found Jordi Alba with a flawless through ball.
Barcelona stumbled out of the blocks this season but they are now tearing down the home straight.
Barcelona relied on goals from Clement Lenglet and Jordi Alba to secure all three points against Sociedad and the pair are likely to start again.
They stifled Barca by sitting deep and outnumbering them in midfield and they should have taken the lead when Juanmi got a clear sight of goal, but he was denied by Marc-Andre ter Stegen and Willian Jose ballooned the rebound over the bar.
There was nothing complicated about Lenglet's opener, the Frenchman rising high above two defenders and heading into the corner for his first league goal in a Barcelona shirt.
They did not completely dominate possession of the ball during the 90 minutes. The defender jinked inside and drove a shot into the far corner.
Nearest rivals Atletico Madrid are in action on Saturday as well, taking on Eibar as they look to keep their title hopes alive with just six games left in the campaign.
It's been a rough second half of the season for this team, which at one point was in contention for a top-four finish.
"Last year we were top with a big advantage and this year it is the same".
They initially cut frustrated figures throughout an opening period of few chances, with the Bernabeu crowd voicing their frustration.
Member of civilian border group facing firearms charges
The federal agency said it had information at the time that that 20-member group was armed with weapons, including AK-47 rifles. Kraehe is leading the prosecution of the case, according to a written statement from the U.S.
Woman wakes after 27 years in a coma
Munira Abdulla suffered a severe brain injury in 1991 after a bus rammed into the auto she was travelling home in. There, she was declared to be in a vegetative state - unresponsive, but able to sense pain - The National reports.
Sophie Turner reacts to episode two sex scene
The second episode in the final season of the insanely popular TV show, Game of Thrones , packed a bunch of surprises for fans. Williams is now 22 years old, so there's a level of us still seeing Arya as the young child we met in season one.