BOSTON -- Brad Marchand completed a hat trick 34 seconds into overtime to give the Boston Bruins a 6-5 win against the Detroit Red Wings at TD Garden on Tuesday.
Marchand, who had two assists, scored on the rebound of a Torey Krug shot. It was his second overtime goal in as many games and fourth of the season.
"A bit of a lucky bounce," said Marchand, who scored 2:06 into overtime for a 2-1 win against the Montreal Canadiens on Saturday. "Was kind of hoping Torey would get it there for the hat trick. But it ended up on my stick and luckily it went in."
[WATCH: All Red Wings vs. Bruins highlights]
Krug had two goals and two assists, David Pastrnak had three assists, and Anton Khudobin made 30 saves for the Bruins, who have won four games in a row.
Video: DET@BOS: Krug scores from the point for early lead
Boston (41-15-8) trails the Tampa Bay Lightning by six points for first place in the Atlantic Division and leads the Toronto Maple Leafs by five for second.
"It's a big moment for our team," Krug said. "This time of the season, we got to get as many points as we can. Obviously a lot of fun getting the win tonight.
Anthony Mantha had two goals and two assists for the Red Wings, who have lost four in a row (0-3-1). Jared Coreau was replaced by Jimmy Howard early in the second period after allowing four goals on 16 shots. Howard made 19 saves.
Detroit (26-29-11) is 10 points behind the Columbus Blue Jackets for the second wild card into the Stanley Cup Playoffs from the Eastern Conference.
"We've got to come out more ready to compete. I think they came out more ready to compete than us," Red Wings coach Jeff Blashill said. "Then, I thought our guys battled extremely hard to put ourselves in position after we kept getting down we kept getting back up. That shows the character of the team."
The Bruins scored 15 seconds apart on their first two shots of the game to take a 2-0 lead. Krug beat Coreau with a slap shot from the left point at 37 seconds, and Jake DeBrusk scored unassisted at 52 seconds.
Video: DET@BOS: DeBrusk finds twine on crazy bounce
Frans Nielsen scored a power-play goal on Detroit's first shot of the game at 2:16 to make it 2-1.
Nielsen left the game with an upper-body injury after he was hit late in the first by Boston forward David Backes, who was called for roughing. Blashill did not have an update on Nielsen.
Mike Green scored at 7:53 to tie the game 2-2 on a one-timer from the right hash marks.
Krug put the Bruins ahead 3-2 at 13:48 when he scored on the power play for his second of the night.
Marchand scored a power-play goal 3:27 into the second period to make it 4-2 and chase Coreau.
Mantha scored at 12:05 to cut the Bruins lead to 4-3, but Marchand scored his second goal at 13:18 to make it 5-3.
Mantha scored his second of the night at 15:50 to get the Red Wings to within 5-4, and Martin Frk tied it 5-5 at 9:46 of the third period.
Video: DET@BOS: Mantha cashes in on turnover for second goal
Goal of the game
Marchand's goal 34 seconds into overtime.
Video: DET@BOS: Marchand completes hatty with OT winner
Save of the game
Khudobin stopping Andreas Athanasiou at 15:20 of the second period.
Video: DET@BOS: Khudobin stifles Athanasiou on break
Highlight of the game
Marchand's goal at 13:18 of the second period.
Video: DET@BOS: Marchand buries own rebound for second goal
They said it
"There's one silly mistake in OT that cost us the game, and we need to keep finding those little details, [Dylan Larkin] and I, and just be better as the season keeps going." -- Red Wings forward Anthony Mantha
"I've got a lot of respect for the way he plays the game, the way he conducts himself as a person, as a pro, and we need it. Again, I was chuckling after the game because there he is, puck finds him, but he's on it, doesn't quit, made some real nice plays tonight." -- Bruins coach Bruce Cassidy on forward Brad Marchand
Need to know
Marchand's 11 regular-season overtime goals are the most in Bruins history, one more than Glen Murray since OT was reinstituted in 1983-84. ... Krug's two-goal game was his fourth in the NHL, second this season. ... Pastrnak got his 100th NHL assist when he helped set up Krug's second goal of the night. ... The Bruins played without defenseman Charlie McAvoy, who missed his first game since spraining his left MCL on Saturday. He will be re-evaluated in four weeks.
Red Wings: Host the Vegas Golden Knights on Thursday (7:30 p.m. ET; FS-D, ATTSN-RM, NHL.TV)
Bruins: Host the Philadelphia Flyers on Thursday (7 p.m. ET; NHLN, SN, NESN, NBCSP+, NHL.TV)
Video: Marchand completes hat trick in OT as B's top Wings