The perennial All-Star right winger is the sixth Bruin to hit the 400 mark.
The milestone goal came just 49 seconds into the second period, when Pastrnak went forehand-backhand-forehand on Dennis Hildeby to give Boston a 4-1 lead.
The play started on a stretch pass from Charlie McAvoy, then a terrific neutral zone chip relay from Morgan Geekie that sprung Pastrnak, just out of the penalty box.
“Geeks, he’s I think, a 5 or 6 handicap in golf, so you could see it there, he has some good wedges,” said a smiling Pastrnak.
As Pastrnak lifted his arms and Geekie retrieved the souvenir, the rest of their teammates spilled over the boards to celebrate with him.
“That was very special. I did not expect it. I didn’t even know it’s allowed, honestly, for 400 goals so I was worried that we’re going to get a penalty,” said Pastrnak. “I think that’s exactly where it hit me, when the guys came out.”
The Maple Leafs clawed back to within 4-3, but after Pastrnak’s second goal — a power-play strike — restored a two-goal lead, the visitors, led by Max Domi, tried to goon it up. The Bruins (11-7-0) wouldn’t take the bait.
It was Boston’s second win over Toronto in four days, and now the Maple Leafs (8-8-1) may be without captain Auston Matthews, who left midway through the second period with a lower body injury.
Matthews was dropped by Nikita Zadorov just outside the Boston blue line. When Matthews got up to seek a retaliatory hit on the bruising Bruin, he just bounced off Zadorov. He left shortly after and didn’t return.
Zadorov knocked Toronto’s Scott Laughton out of Saturday night’s game with a crunching, but clean hit. The Maple Leafs center remained out of the lineup Tuesday.
The 5-foot-10-inch, 208-pound Domi went after Zadorov, but the 6-7, 255-pound bruising blue liner rebuffed the Maple Leafs agitator’s invitation to tussle. Domi ended up in the box, which led to Pastrnak’s goal.
“He’s my ex-teammate; I won a championship [with London in the Ontario Hockey League] with him. I am not going to fight my friend. I mean, I see what he’s doing and the [type of] player he is and his dad [Tie]. They’ve been great to me,” said Zadorov. “So, I have to respect Max there to go after me for my style and then what I did to his teammates, I guess. But like I told Max, he’s way, way shorter than me and smaller than me. It’s a lose-lose situation for me if I fight him, right? So, there was no point for me to do anything there.”
The Bruins came out storming and dominated for most of the first period, which they ended with a 3-1 lead courtesy of a pair of power-play strikes and Alex Steeves’s first as a Bostonian.
Philippe Myers went off for hooking Viktor Arvidsson at 4:13, and the Bruins needed just 14 seconds to take advantage.
Pastrnak swirled to the top of the left circle and fired the puck through the slot. It may have been intended as a pass to Geekie, but it struck Pavel Zacha’s left skate and beat Anthony Stolarz.
It was Zacha’s fifth on the season and his third goal in four games.
The Maple Leafs tied it, also on a Boston power play. McAvoy coughed the puck up in his own end and Steven Lorentz pounced on it and wristed a shot over Jeremy Swayman’s blocker. It was Toronto’s first shot of the game and the second shorthanded goal the Bruins have allowed this season.
Shortly after the Garden erupted following a video tribute to newly minted Hall of Famer Zdeno Chara — who waved and tapped his heart from his work spot on the ninth floor — the Bruins regained the lead.
With Simon Benoit off for a high stick, Hampus Lindholm connected for his first of the season, a wrister from the top of the right circle off a nice dish from Mason Lohrei.
The home folk gave another ovation later in the period following a video tribute to another former Boston blue liner: Brandon Carlo. Traded to Toronto in March, Carlo spent the first nine years of his career in Black and Gold. He hopped off the bench, raised his stick to the crowd, and tapped his heart.
Steeves made it 3-1 when the winger wristed one through Stolarz’s wickets from the right face-off circle. The puck was quickly retrieved for the mantel by fellow former Maple Leafs farmhand Fraser Minten.
The Bruins chased Stolarz for the second straight contest, with Hildeby taking over coming out of the first intermission.
The eruptions only got louder in the second with Pastrnak’s 400th.
Toronto pulled within 4-2 after two when Bobby McMann beat Swayman with a backhander on the power play. Oliver Ekman-Larsson’s goal at 3:32 of the third made it 4-3 before Pastrnak closed the door.
Both teams aren’t dominating, but which team has had a better start?
Jim McBride can be reached at james.mcbride@globe.com. Follow him @globejimmcbride.