The win keeps Barca in the chase for the league title with 62 points, four points behind Atletico Madrid and two ahead of Real Madrid. The game also marked Messi’s 768th appearance for the Catalan squad, breaking Xavi’s all-time mark.
Griezmann opened the scoring by netting against his old club in the 36th minute and Dest stretched Barca’s lead shortly before halftime after latching on to a sweeping pass from Messi.
Dest struck again early in the second half before Messi controlled a sumptuous pass from Sergio Busquets and scored.
Dembele struck his side’s fifth goal of the night in the 71st minute after a brilliant solo run while Sociedad’s Ander Barrenetxea hit arguably the best goal of the game to give his side a rare moment of joy.
Messi, however, had the final say, finishing off a flowing team move in the 89th minute to score his 23rd league goal of the season, increasing his lead at the top of the scoring charts.