Hyman added an empty-net goal with 1:35 remaining.
It was the 672nd meeting between the two Original Six teams in a rivalry that dates back to 1924.
Marner had a pair of primary assists, upping his NHL-best total to 24 (he has 27 assists in all).
The Bruins lost Kevan Miller late in the first period after the defenseman took a puck to the throat area off a shot by John Tavares.
Both teams were playing their fourth game in six nights.
The Bruins, who won 3-2 in Montreal on Saturday night, had won two straight and three of four. Toronto was coming off a 6-0 win over visiting Philadelphia on Saturday night.
Marleau, a 39-year-old winger, became the 11th NHL player to reach 1,600 regular-season games. He has missed just 31 games over 21 seasons since making his debut on Oct. 1, 1997.
“Great, great human being,” Toronto coach Mike Babcock said before the game.
“Hard worker, great pro, great person,” he added. “So important for this team it’s not even funny and I’m not even talking about what he does on the ice. He’s fantastic.”
Marleau got a standing ovation from the crowd after a video tribute in the first period.
Boston’s David Backes had an excellent chance early on but his shot clipped the top of the crossbar. Hyman needed some early repair work after Miller’s stick came apart and a piece hit Hyman in the face.
Toronto’s Nazem Kadri hit the post with a backhand after being sent in alone by Dermott’s stretch pass. Boston’s Colby Cave hit the Toronto crossbar soon after with a shot through traffic.
Dermott finally beat Jaroslav Halak with a shot through traffic at 17:44 for his first of the season after the Bruins’ top line couldn’t clear the puck.
Boston, gaining momentum, outshot Toronto 10-0 to open the second before Toronto registered a shot midway through the period. Pastrnak, off a feed from Brad Marchand, tied it on the power play at 3:39
The Bruins hit another post on the power play later in the second. Seconds later, with the penalty over, a freewheeling Marner found Ozhiganov cruising in from the point and his shot banked in off a Boston body at 13:06.
Pastrnak tied it at 14:22, taking Torey Krug’s nifty pass to the side of the net before slotting it past Andersen to increase his season total to 19.
Leivo put Toronto ahead 3-2 on the power play at 18:38, banging home Tyler Ennis’ rebound after a rush by Marner.
NOTES: Both teams were missing key players. Toronto was without Auston Matthews (shoulder), and restricted free agent William Nylander remains unsigned. The Bruins injury list included star center Patrice Bergeron (rib), and defensemen Zdeno Chara (left knee) and Charlie McAvoy (concussion). Sweden’s Jakob Forsbacka Karlsson, known as JFK, centered the Bruins’ top line in Bergeron’s absence. … Toronto defenseman Nikita Zaitsev missed the morning skate because of illness but played anyway. … Andersen came in with a 10-1-0 regular-season record against Boston — he is 3-3 in the postseason. His last meaningful start against the Bruins was Game 7 of the first round of the 2018 playoffs when Boston rallied to end the Maple Leafs’ season with a 7-4 win.
Bruins: Host the New York Islanders on Thursday night.
Maple Leafs: Host the San Jose Sharks on Wednesday night.
More NHL hockey: https://www.apnews.com/NHL and https://www.twitter.com/AP_Sports