BOSTON - Patrice Bergeron scored at 6:05 of overtime to complete a miraculous Boston comeback as the Bruins rallied to oust the Toronto Maple Leafs from the playoffs with a nail-biting 5-4 victory in Game 7 Monday night.

Bergeron, with his second of the night, ended it as the Bruins blitzed the Toronto goal. The Leafs could not clear the puck and the Bruins forward snapped home a shot.

Two late goals in the space of 31 seconds by Boston's Milan Lucic and Bergeron, with goalie Tuukka Rask off for the extra attacker, shockingly tied the game up at 4-4.

It had looked like two early goals by defenceman Cody Franson had been enough to propel Toronto into the next round of the playoffs. The Leafs led 4-1 midway through the third period when the Bruins started pulling rabbits out of their hat with three unanswered goals — the last two with the clock running out.

It marked the first time the Bruins have come back from a three-goal deficit in a playoff game since April 11, 1990, when they trailed the Hartford Whalers by a 5-2 score in the third period but went on to win 6-5.

The capacity crowd, which had been disgruntled most of the night, partied as it waited for an overtime period that never seemed in the cards.

Leading 2-1 entering the third period, Phil Kessel added an insurance goal at 2:09, poking in the puck into a gaping goal after Nazem Kadri hit the post. Kessel's fourth goal of the post-season was helped by a Bruins giveaway.

Kadri then scored on a two-one-one, banging home Kessel's rebound at 5:29 to seemingly hammer another nail in the Boston coffin.

At the other end, James Reimer seemed to have got into the Bruins' heads until Nathan Horton swept in a pass from Lucic, who swooped behind the net and then got the puck through traffic to his linemate to cut the lead to 4-2 at 9:18.

That sparked a late flurry by the Bruins and Lucic, stuffing in the puck from in close, scored with 1:22 remaining. Then Bergeron beat Reimer with 51 seconds left as hulking Bruins captain Zdeno Chara screened the Toronto goalie.

Rich Peverley had a chance to win it in the dying seconds but couldn't get good wood on it after a fat Reimer rebound.

The fourth-seeded Bruins, who dug their own hole by failing to finish off the Leafs in Games 5 and 6, started well but soon found themselves short on defencemen, discipline and inspiration. Upset at the officiating as the game wore on, the Boston players seemed preoccupied with a jab here, a punch there.

It was as if they were more interested in getting even on the ice than the scoreboard.

Boston began to looked tired and dispirited. The opportunistic Leafs, in contrast, grew in stature and confidence.

Franson, who had four goals in 45 games during the regular season, upped his playoff points total to three goals and three assists in seven games. Kadri and Kessel both had a goal and an assist while linemate James van Riemsdyk had two assists

The last Toronto defenceman to score two goals in a playoff game was Tomas Kaberle on April 14, 2003, against Philadelphia.

Matt Bartkowski, profiting from a Franson turnover, opened the scoring for Boston.

Inside the TD Garden, a sellout of 17,565 yellow-and-black faithful waved yellow towels. Back in Toronto, blue-and-white Leafs fans gathered at Maple Leaf Square.

The Bruins won Game 1 in Boston and Games 3 and 4 (in OT) in Toronto. The Leafs took Games 2 and 5 in Boston and Game 6 in Toronto.

After Game 6, Boston coach Claude Julien had talked of his Jekyll and Hyde team this season. The question facing Boston fans was which Bruins team would show up Monday.

The Bad Bruins — the team that exited the 2012 playoffs by losing Game 7 to Washington in 2012 and the one in 2010 that won three games against Philadelphia only to lose the next four. Or the Good Bruins — the team that won the Cup in 2011 by winning Game 7s against Montreal, Tampa Bay and Vancouver in the final.

Julien asked for a 60-minute effort and the Bruins came out bristling. David Krejci's line had three shots on goal in the first shift, including a two-on-one on Reimer.

Both team had injury issues.

Toronto was without injured centre Tyler Bozak (upper body) while Boston had problems on the blue-line with Andrew Ference and Wade Redden (undisclosed) both out.

Toronto's Joe Colborne played for the second night in a row while Dougie Hamilton and Bartkowski filled in on the Bruins blue-line. Defenceman Dennis Seidenberg dressed but only saw 37 seconds ice time on two shifts in the first period after an apparent injury.

That left Boston with five defenceman, two of whom had seen limited NHL action.

One of those five was Chara, who flattened Kessel and then van Riemsdyk early on. Colton Orr repaid the favour later in the first period.

The bottom fell out for Toronto at 5:39 when Franson tried an ill-advised pass between his legs from the boards inside the Toronto blue-line. It went straight to Bartkowski who skated in from the point and ripped a wrist shot past Reimer.

The fans started chanting Reimer, Reimer in derision. They should have been thanking Franson.

Rask preserved the lead minutes later, throwing out a leg to stop a Joffrey Lupul backhand as the Toronto winger raced in.

There was redemption for Franson at 9:35 when he banged a power-play goal in the dying seconds of a Chara penalty. It came after a goalmouth melee that saw van Riemsdyk and Lupul poking away at Rask and the puck in front. As a mountain of bodies grew by the crease, Franson tapped the puck into an empty goal to silence the crowd.

Tiring of the lack of production from the Brad Marchand-Bergeron-Tyler Seguin line, Julien replaced Seguin — pointless in the series — with the ageless Jaromir Jagr.

Toronto outshot the Bruins 12-7 in the first period and outhit the home side 18-12.

The second period was tight until Franson delivered a rocket from the point that went unseen past the right shoulder of a screened Rask at 5:48.

The Bruins' frustration was exemplified in the second period when Lucic, reacting to an unnoticed slash from Dion Phaneuf as the Toronto captain was on his butt behind the goal, was penalized for roughing. Lupul then knocked Rask's mask off with his knee in a goalmouth collision, enraging Chara.

Rask's glove hand kept the Boston in the game. At the other end, Reimer made an important stop on Marchand during a late power play in the period

Toronto outshot Boston 8-6 in the second.

The Boston roster held a huge edge in experience when it came to playing in a Game 7. Some 20 Bruins had already experienced a Game 7, with a combined total of 105 Game 7s between them.

As a franchise, the Bruins were 12-11 in Game 7s (11-7 on home ice) compared to 12-9 for Toronto (5-8 on the road).

In contrast, just five Leafs (Kessel, Lupul, Ryan O'Byrne, Phaneuf and van Riemsdyk) had been in a Game 7 — with Toronto's total at nine games.

Going into the series decider, Boston had outscored the Leafs 17-14 and outshot them 238-206. Toronto had outhit the Bruins 304-254.

NOTES — The Bruins' honorary fan captain for the game was Jarrod Clowery, who was injured at the Boston Marathon ... Coming into the game, Toronto held a 34-33-1 edge over Boston in post-season play, outscoring the Bruins 170-164.

Loading Slideshow...
  • DeSean Jackson

    Philadelphia Eagles' DeSean Jackson celebrates in the snow after a touchdown during the second half of an NFL football game against the Detroit Lions, Sunday, Dec. 8, 2013, in Philadelphia. (AP Photo/Matt Rourke)

  • Chris Davis

    Auburn cornerback Chris Davis (11) returns a missed field-goal attempt 109 yards to score the game-winning touchdown as time expired in the fourth quarter of an NCAA college football game against No. 1 Alabama in Auburn, Ala., Saturday, Nov. 30, 2013. Auburn won 34-28. (AP Photo/Dave Martin)

  • Cristiano Ronaldo

    Portugal's Cristiano Ronaldo celebrates after scoring the 2-3 goal during the World Cup 2014 qualifying playoff second leg soccer match between Sweden and Portugal at Friends Arena in Stockholm, Tuesday, Nov. 19, 2013. (AP/TT/Pontus Lundahl) SWEDEN OUT

  • Boston Red Sox Victory Parade

    BOSTON, MA - NOVEMBER 02: The World Series trophy and the 'Boston Strong 617' jersey sit on the finish line of the Boston Marathon on Boylston Street during the World Series victory parade on November 2, 2013 in Boston, Massachusetts. (Photo by Jared Wickerham/Getty Images)

  • Florida State v Clemson

    CLEMSON, SC - OCTOBER 19: Jameis Winston #5 of the Florida State Seminoles throws a pass as Vic Beasley #3 of the Clemson Tigers tries to stop him during their game at Memorial Stadium on October 19, 2013 in Clemson, South Carolina. (Photo by Streeter Lecka/Getty Images)

  • Los Angeles Clippers v Los Angeles Lakers

    LOS ANGELES, CA - OCTOBER 29: Kobe Bryant of the Los Angeles Lakers reacts to someone in the crowd during the game against the Los Angeles Clippers at Staples Center on October 29, 2013 in Los Angeles, California. NOTE TO USER: User expressly acknowledges and agrees that, by downloading and or using this photograph, User is consenting to the terms and conditions of the Getty Images License Agreement. (Photo by Jeff Gross/Getty Images)

  • Divisional Playoffs - Green Bay Packers v San Franciso 49ers

    SAN FRANCISCO, CA - JANUARY 12: Quarterback Colin Kaepernick #7 of the San Francisco 49ers celebrates after running in a touchdown in the first quarter against the Green Bay Packers during the NFC Divisional Playoff Game at Candlestick Park on January 12, 2013 in San Francisco, California. (Photo by Harry How/Getty Images)

  • Crowds greet Britain's Andy Murray as he celebrates with the trophy on the balcony of Centre Court after winning the Men's singles title on during day thirteen of the Wimbledon Championships at The All England Lawn Tennis and Croquet Club, Wimbledon, London, Sunday July 7, 2013. (AP Photo/Dominic Lipinski, PA) UNITED KINGDOM OUT NO SALES NO ARCHIVE

  • CORRECTS ID OF UMPIRE TO JIM JOYCE, INSTEAD OF ADAM WAINWRIGHT - St. Louis Cardinals catcher Yadier Molina looks back as home plate umpire Jim Joyce calls Boston Red Sox's Jonny Gomes safe on a three-run double by Shane Victorino during the third inning of Game 6 of baseball's World Series on Wednesday, Oct. 30, 2013, in Boston. At rear from left are Boston's Jacoby Ellsbury, Xander Bogaerts and David Ortiz. (AP Photo/Elise Amendola)

  • Horses make their way around turn one during the 139th Kentucky Derby at Churchill Downs Saturday, May 4, 2013, in Louisville, Ky. (AP Photo/Darron Cummings)

  • Outback Bowl - South Carolina v Michigan

    TAMPA, FL - JANUARY 01: Defensive end Jadeveon Clowney #7 of the South Carolina Gamecocks stretches for a fourth-quarter fumble during a 33 - 28 victory against the Michigan Wolverines in the Outback Bowl January 1, 2013 at Raymond James Stadium in Tampa, Florida. (Photo by Al Messerschmidt/Getty Images)

  • Roy Hibbert, New York Knicks

    Indiana Pacers' Roy Hibbert (55) blocks the shot of New York Knicks' Carmelo Anthony, right, during the second half of Game 6 of an Eastern Conference semifinal NBA basketball playoff series on Saturday, May 18, 2013, in Indianapolis. The Pacers defeated the Knicks 106-99 to win the series 4-2. (AP Photo/Darron Cummings)

  • Best Sports Photos Of 2013

    BOSTON, MA - OCTOBER 13: Boston police officer Steve Horgan reacts as Torii Hunter #48 of the Detroit Tigers tries to catch a grand slam hit by David Ortiz #34 of the Boston Red Sox in the eighth inning of Game Two of the American League Championship Series at Fenway Park on October 13, 2013 in Boston, Massachusetts. (Photo by Al Bello/Getty Images)

  • Best 2013 Sports Photos

    Paris Saint-Germain's Swedish forward Zlatan Ibrahimovic (C) kicks the ball to score during the French L1 football match Paris Saint Germain (PSG) against Bastia (SCB) on October 19, 2013 at the Parc des Princes in Paris. AFP PHOTO / LIONEL BONAVENTURE (Photo credit should read LIONEL BONAVENTURE/AFP/Getty Images)

  • Kaleena Mosqueda-Lewis

    Connecticut forward Kaleena Mosqueda-Lewis (23) goes after a rebound during first half of the national championship game against Louisville at the women's Final Four of the NCAA college basketball tournament, Tuesday, April 9, 2013, in New Orleans. (AP Photo/Gerald Herbert)

  • Best 2013 Sports Photos

    Jamaica's Usain Bolt (L) wins the100 metres final at the 2013 IAAF World Championships at the Luzhniki stadium in Moscow on August 11, 2013 while a lightning strikes in the sky. AFP PHOTO / OLIVIER MORIN

  • Best Sports Photos Of 2013

    Manchester United's Dutch striker Robin van Persie (C) scores the opening goal during the English Premier League football match between Swansea City and Manchester United at Liberty Stadium in Swansea, south Wales, on August 17, 2013. AFP PHOTO/IAN KINGTON == RESTRICTED TO EDITORIAL USE. NO USE WITH UNAUTHORIZED AUDIO, VIDEO, DATA, FIXTURE LISTS, CLUB/LEAGUE LOGOS OR LIVE SERVICES. ONLINE IN-MATCH USE LIMITED TO 45 IMAGES, NO VIDEO EMULATION. NO USE IN BETTING, GAMES OR SINGLE CLUB/LEAGUE/PLAYER PUBLICATIONS. == (Photo credit should read IAN KINGTON/AFP/Getty Images)

  • Carlos Gomez, Ryan Braun

    Milwaukee Brewers' Carlos Gomez ducks out of the way as teammate Ryan Braun (8) tries to dunk him with water after a baseball game against the San Francisco Giants Wednesday, April 17, 2013, in Milwaukee. The Brewers won 4-3. (AP Photo/Morry Gash)

  • Joe Andruzzi

    In this Monday, April 15, 2013 photo, former New England Patriots player Joe Andruzzi carries a woman from the scene of two blasts at the finish line of the Boston Marathon on Exeter Street in Boston. The bombs that ripped through the crowd at the Boston Marathon, killing three people and wounding more than 170, were fashioned out of pressure cookers and packed with metal shards, nails and ball bearings to inflict maximum carnage, a person briefed on the investigation said Tuesday. (AP Photo/The Boston Globe, Bill Greene) MANDATORY CREDIT, BOSTON HERALD OUT, QUINCY OUT, NO SALES, MAGS OUT

  • Best 2013 Sports Photos

    Michigan guard Trey Burke (3) walks off the court as Louisville celebrate their win during the second half of the NCAA Final Four tournament college basketball championship game Monday, April 8, 2013, in Atlanta. Louisville won 82-76. (Charlie Neibergall / AP)

  • Best 2013 Sports Photos

    Athletes start the New Zealand Ironman on March 2, 2013 in Taupo, New Zealand. (Phil Walter / Getty Images)

  • Diana Nyad

    AP10ThingsToSee - U.S. swimmer Diana Nyad, 64, greets her support team before her swim to Florida from Havana, Cuba, Saturday, Aug. 31, 2013. Endurance athlete Nyad launched another bid Saturday to set an open-water record by swimming from Havana to the Florida Keys without a protective shark cage. (AP Photo/Ramon Espinosa, File)

  • Best 2013 Sports Photos

    Russia's Anastasia Pavlyuchenkova casts a shadow while serving to Switzerland's Romina Oprandi during their Portugal Open semifinal tennis match Friday, May 3 2013, in Oeiras, outside Lisbon. Pavlyuchenkova defeated Oprandi 0-6, 6-3, 6-1. (Armando Franca / AP)

  • Best 2013 Sports Photos

    Stanford players dump water over head coach Lele Forood's head as she gives an interview to Dave Kozlowski in the NCAA division 1 women's team tennis championship at the Khan Outdoor Tennis Complex Tuesday, May 21, 2013 on the University of Illinois campus in Urbana, Ill. Stanford defeated Texas A&M 4-3. (Stephen Haas / AP)

  • This screen image taken from NASA shows the Sochi Olympic torch being held during a spacewalk on Saturday, Nov. 9, 2013. Video streamed by the US space agency NASA showed Oleg Kotov and Sergei Ryazanskiy carrying the unlit Olympic torch, bobbing weightlessly at the end of a tether in a darkness dotted by stars. The two gingerly maneuvered to take photos of the torch against the background of the planet, the orb’s edge glowing with sunrise. (AP Photo/NASA)

  • Seattle Sounders v Los Angeles Galaxy

    CARSON, CA - MAY 26: Robbie Rogers (L) #14 of Los Angeles Galaxy comes into the game for Juninho #19 in the second half against the Seattle Sounders FC at The Home Depot Center on May 26, 2013 in Carson, California. The Galaxy defeated Sounders FC 4-0. (Photo by Jeff Gross/Getty Images)

  • Best 2013 Sports Photos

    Belgium's RSC Anderlecht coach John Van Den Brom, center, after winning the final soccer match of the Belgian League against SV Zulte Waregem at the Constant Vanden Stock stadium in Brussels, Sunday, May 19, 2013. (Yves Logghe / AP)

  • Best 2013 Sports Photos

    Floyd Mayweather Jr. lands a left jab against Robert Guerrero in the fourth round during a WBC welterweight title fight, Saturday, May 4, 2013, in Las Vegas. (Isaac Brekken / AP)

  • Best 2013 Sports Photos

    Saudi Al-Hilal club player Nawaf Shaker celebrates after scoring a goal against Qatar's Al-Rayyan club during their AFC Champions League football match in Doha, Qatar, Tuesday, April 30, 2013. (Osama Faisal / AP)

  • Best 2013 Sports Photos

    Oakland Athletics' Eric Sogard gets a shaving cream pie in the face from Josh Reddick, rear, after Sogard scored the winning run on a sacrifice bunt from Coco Crisp during 10th inning of a baseball game against the Baltimore Orioles, Sunday, April 28, 2013, in Oakland. Calif. Oakland won 9-8. (Marcio Jose Sanchez / AP)

  • Best 2013 Sports Photos

    Fans try to catch a bat that Arizona Diamondbacks' Cody Ross lost on his swing during the first inning of a baseball game against the San Francisco Giants, Tuesday, April 30, 2013, in Phoenix. (Matt York / AP)

  • Best 2013 Sports Photos

    A worker grooms away tracks after an alligator crossed through a sand trap on the 14th hole during the first round of the PGA Tour Zurich Classic golf tournament at TPC Louisiana in Avondale, La., Thursday, April 25, 2013. (Gerald Herbert / AP)

  • Best 2013 Sports Photos

    Philadelphia Phillies center fielder Ben Revere dives for a fly out by St. Louis Cardinals' Carlos Beltran during the first inning of a baseball game, Saturday, April 20, 2013, in Philadelphia. (Matt Slocum / AP)

  • Best 2013 Sports Photos

    In this photo made with a fisheye lens, Kevin Harvick celebrates winning the Toyota Owners 400 NASCAR Sprint Cup Series auto race Saturday, April 27, 2013, at Richmond International Raceway in Richmond, Va. (Jared C. Tilton / AP)

  • Best 2013 Sports Photos

    Sunderland's manager Paolo Di Canio, celebrates after Stephane Sessegnon scores his goal during their English Premier League soccer match against Newcastle United at St James' Park, Newcastle, England, Sunday, April 14, 2013. (Scott Heppell / AP)

  • Best 2013 Sports Photos

    New York Yankees relief pitcher Mariano Rivera, left, laughs with former New York Mets closer John Franco after Franco caught Rivera's ceremonial first pitch before an interleague baseball game at Citi Field in New York, Tuesday, May 28, 2013. (Kathy Willens / AP)

  • Best 2013 Sports Photos

    San Diego Padres' Carlos Quentin charges into Los Angeles Dodgers pitcher Zack Greinke after being hit by a pitch in the sixth inning of baseball game in San Diego, Thursday, April 11, 2013. (Lenny Ignelzi / AP)

  • Best 2013 Sports Photos

    Minnesota Twins' Brian Dozier, left, flips over after making a catch of a shallow fly ball off the bat of Los Angeles Angels' Peter Bourjos as right fielder Chris Parmelee watches in the first inning of a baseball game, Tuesday, April 16, 2013, in Minneapolis. (Jim Mone / AP)

  • Best 2013 Sports Photos

    Chicago Bulls forward Carlos Boozer reacts after a dunk during the second half of an NBA basketball game against the Detroit Pistons in Chicago, Sunday, March 31, 2013. The Bulls won 95-94. (Nam Y. Huh / AP)

  • Best 2013 Sports Photos

    Baylor's Brittney Griner gestures as she answers a question during a news conference for a regional semifinal in the women's NCAA college basketball tournament in Oklahoma City, Saturday, March 30, 2013. Baylor is scheduled to play Louisville Sunday. (Sue Ogrocki / AP)

  • Best 2013 Sports Photos

    Washington Nationals catcher Wilson Ramos loses the ball as New York Yankees' Eduardo Nunez slides safely into home with home plate umpire Adam Hamari looking on at right during the fourth inning of an exhibition baseball game at Nationals Park Friday, March 29, 2013, in Washington. (Alex Brandon / AP)

  • Best 2013 Sports Photos

    A young fan with his face painted with the colors of Chile's national flag gestures before the start of a 2014 World Cup qualifying soccer match against Uruguay in Santiago, Chile, Tuesday, March 26, 2013. (Victor R. Caivano / AP)

  • Best 2013 Sports Photos

    Serena Williams reacts after winning a point against Dominika Cibulkova, of Slovakia, during the Sony Open tennis tournament, Monday, March 25, 2013, in Key Biscayne, Fla. Williams won 2-6, 6-4, 6-2. (Lynne Sladky / AP)

  • Best 2013 Sports Photos

    Austria's Wolfgang Loitzl soars through the air during his competition jump of the third stage of the four hills ski jumping tournament during foggy weather in Innsbruck, Austria, Friday, Jan. 4, 2013. (Matthias Schrader, AP)

  • Best 2013 Sports Photos

    Sweden's skip Margaretha Sigfridsson shouts during her gold medal game against Scotland at the 2013 world women's curling championship in Riga, Latvia, Sunday, March 24, 2013. (Roman Koksarov / AP)

  • Best 2013 Sports Photos

    Philadelphia Phillies center fielder Ben Revere makes a diving catch of Will Middlebrooks's seventh-inning fly ball in a spring training baseball game against the Boston Red Sox in Clearwater, Fla., Sunday, March 24, 2013. (Kathy Willens / AP)

  • Johnny Manziel

    Texas A&M's Johnny Manziel, right, celebrates a touchdown by teammate Ben Malena (1) during the first quarter of an NCAA college football game against Rice, Saturday, Aug. 31, 2013, in College Station, Texas. Manziel has been suspended for the first half of the team's game for what the school said was an "inadvertent" violation of NCAA rules by signing autographs. (AP Photo/Eric Gay)

  • Best 2013 Sports Photos

    North Carolina coach Roy Williams cheers on his team during the second half of a second-round game against Villanova in the NCAA college basketball tournament Friday, March 22, 2013, in Kansas City, Mo. (Charlie Riedel / AP)

  • Best 2013 Sports Photos

    North Carolina's Dexter Strickland (1) and Reggie Bullock (35) stretch before practice for a second-round game of the NCAA college basketball tournament, Thursday, March 21, 2013, in Kansas City, Mo. North Carolina is scheduled to play Villanova Friday. (Charlie Riedel / AP)

  • Best 2013 Sports Photos

    Michigan State guard Denzel Valentine (45) grabs a rebound over Valparaiso guard Matt Kenney (23) in the first half of a second-round game of the NCAA college basketball tournament in Auburn Hills, Mich., Thursday March 21, 2013. (Paul Sancya / AP)

  • Best 2013 Sports Photos

    Lotus driver Kimi Raikkonen, left, of Finland, Ferrari's Fernando Alonso, center, of Spain and Red Bull's Sebastian Vettel of Germany celebrate on the podium after the Australian Formula One Grand Prix at Albert Park in Melbourne, Australia, Sunday, March 17, 2013. Raikonen won the race with Alonso second and Vettel third. (Andrew Brownbill / AP)