In the end, the revenge wasn’t so sweet for Toronto.

Instead the Bruins prevailed as the better team in the third period, and parlayed a James van Riemsdyk cross-check to Johnny Boychuk’s face into a Patrice Bergeron power-play strike for the 3-1 victory over the Maple Leafs on Saturday night at TD Garden.

Bergeron’s strike was the shoveled rebound of a Carl Soderberg shot, and became the first forward to score a power-play goal for Boston this season in their 16th game. The victory against a motivated, emotional Toronto team is the kind of effort that shows convincing evidence the Bruins are lifting out of their malaise. It also gives them a two-game winning streak.

The Bruins and Maple Leafs alternated their best periods of the season through the first 40 minutes, and then left it up for grabs in the final 20 minutes.

The B’s grabbed the momentum with an impressive two minute long shift with Milan Lucic, David Krejci and Jarome Iginla cycling the Toronto defense into oblivion, and ultimately holding penalty on Jay McClement. That led to a Bruins power play with Iginla setting things up by crashing the net before feeding a pass to Zdeno Chara fighting off defenders in front of the net to stuff it home.

Toronto stormed back in the second period outshooting the Bruins by an 18-10 margin with Joffrey Lupul snapping off a top corner wrist shot past Tuukka Rask to the glove side to even things up. Bergeron picked up his second goal of the game with 21.7 seconds remaining on an empty net goal created when Loui Eriksson won a puck battle with Dion Phaneuf in the corner.