BOSTON -- Patrick Marleau and Joe Thornton scored power-play goals 25 seconds apart in the second period, and the San Jose Sharks held off the Boston Bruins 5-4 at TD Garden on Tuesday.
The Sharks are 3-0-0 on their six-game road trip.
Thornton and Joe Pavelski each had a goal and two assists for San Jose (10-8-0). Marleau's go-ahead goal at 8:56 of the second period was his 999th career point.
"We're in a position where we need wins," Pavelski said. "Can't look back. Each night's important and so far on this road trip they've been good quality wins for us. Good team wins. A lot of guys that contributed and that's what you need. The biggest thing is guys are showing up. Everyone's contributing and we're getting that solid effort from everyone."
Goaltender Tuukka Rask made 23 saves for the Bruins (8-8-1), who have lost five of their past seven games. The Bruins, who are 2-6-1 at home, were hoping to build off a solid 3-1 win at TD Garden against the Detroit Red Wings on Saturday. They have yet to win two straight at home this season.
"It's frustrating," Bruins forward Brad Marchand said. "I think we want to try to get on a roll here at home and ... every time we get an opportunity to continue to improve on our game we take a step back. So we need a big day at practice tomorrow to get ready for the next game."
Marleau broke a 3-3 tie when he scored off a rebound of a Marc-Edouard Vlasic shot that went through a Thornton screen before Rask made the save.
Thornton made it 5-3 at 9:21 when he fired a power-play one-timer from between the circles past Rask after a slick passing play by Pavelski.
Patrice Bergeron scored Boston's second power-play goal of the night on a one-timer from near the right dot 6:28 into the third period to make it a one-goal game. Boston's Matt Beleskey hit the crossbar midway through the period, and Jones made a good stop on Brett Connolly with six seconds remaining.
Jones finished with 25 saves and came up big after allowing three goals in the first 21:53.
"He's been there all season for us ... he had a couple big saves for us again tonight," Marleau said of Jones.
Pavelski opened the scoring 42 seconds into the game when he flipped in the rebound of a shot by Melker Karlsson that went off the crossbar.
The Bruins scored the next two goals. Tyler Randell tied it when he tipped in a Dennis Seidenberg point shot at 9:20, and Marchand scored on a rebound of a Zdeno Chara shot during a power play at 11:50.
San Jose got even at 2-2 with 4:52 remaining when defenseman Paul Martin skated up from the left point and took a wrist shot. The puck went off Joonas Donskoi's body between the circles and beat Rask high to the glove side.
"I really liked our first period and if we had come out of that down 2-1 I think it would have been a little disheartening," San Jose coach Peter DeBoer said. "So I think it was just the result that we were tied 2-2, but we worked for that."
Center David Krejci set up Loui Eriksson for a go-ahead goal 1:53 into the second period, but the Bruins' one-goal lead became a two-goal deficit before the period was through.
Karlsson beat Rask with a wrist shot from the slot at 5:56 to tie the score 3-3 before Marleau put the Sharks ahead to stay. Bruins coach Claude Julien challenged Marleau's goal, saying that Thornton interfered with Rask, but the referees ruled there was no interference before the puck crossed the goal line.
"I went by what I was told and even Tuukka came to the bench and said that his stick was in his blocker and prevented him from getting over there quick enough," Julien said. "So it was certainly worth the challenge."
The Bruins' five-game homestand continues against the Minnesota Wild on Thursday, the same night San Jose visits the Philadelphia Flyers.