Joe Thornton set up Marcus Sorensen for a tiebreaking goal early in the third period and Melker Karlsson tacked on two insurance goals that sent the Sharks to a 5-2 victory over the Blackhawks on Sunday night.
Tomas Hertl and Timo Meier also scored to help the Sharks end an eight-game stretch of alternating wins and losses. San Jose moved within three points of Calgary for first in the division, although the Flames have a game in hand.
Martin Jones made 28 saves for the Sharks and helped keep Patrick Kane off the score sheet. Kane failed to record a point in back-to-back games for just the second time this season, also doing it Nov. 21-23.
Dylan Strome and Erik Gustafsson scored for the Blackhawks, who lost on back-to-back days and now trail Western Conference wild-card leaders Dallas and Minnesota by eight points. Cam Ward made 29 saves.
The game was tied heading into the third when the Sharks took control. Thornton capped a strong shift by threading a perfect pass to Sorensen in the slot. Sorensen then beat Ward with a quick shot for his third goal in the past two games.
Just a few minutes later, Micheal Haley drew a delayed penalty and then set up Brent Burns, whose big shot deflected off Karlsson and into the net for a 4-2 lead.
Karlsson added an empty-netter to seal the win.
Chicago hosts Buffalo on Thursday.