Nick Turchiaro-USA TODAY Sports

Mitchell Marner scored the only goal in a shootout, and the Toronto Maple Leafs came back from two goals down on two different occasions to defeat the visiting Montreal Canadiens 6-5 Wednesday night.

Auston Matthews scored three goals for Toronto, including two late in the third period to tie the game.

Noah Gregor and William Nylander also scored for the Maple Leafs. John Tavares added three assists, while John Klingberg had two.

Alex Newhook scored twice for Montreal. Jake Evans, Cole Caufield and Jesse Ylonen also scored for the Canadiens, with Kirby Dach adding two assists.

Ilya Samsonov made 19 saves for Toronto.

Jake Allen stopped 37 shots for Montreal.

Evans scored at 3:01 of the first period. Toronto defenseman TJ Brodie fell at the Montreal blue line, and Evans pounced on the loose puck, having a clear path to the Toronto net before flipping in an 11-foot wrist shot.

The Canadiens took advantage of an odd-man break from their own end to take a 2-0 lead at 1:10 of the second period. Juraj Slafkovsky set up Newhook with a pass to the edge of the crease.

Montreal put the puck in the net again at 5:35 of the second, but a video review determined that the play was offside.

Gregor scored on a 35-foot shot from the left faceoff circle at 7:46 of the second to bring the Leafs within one..

Toronto tied the game during a power play at 14:51 of the second when Matthews scored his 300th career goal on a 20-footer from the right circle. Newhook was off for tripping.

Toronto led 3-2 on Nylander's power-play goal at 19:15 of the second on a 43-foot slap shot from the left circle. Evans was serving a holding penalty.

Montreal scored twice early in the third period to regain the lead. Caufield's shot was deflected by a Toronto defenseman at 4:25 on a power play to tie the game. Tyler Bertuzzi was serving a slashing penalty. Newhook tipped in a shot by Arber, and Ylonen netted his first of the year at 11:55 of the third to give the Habs a three-goal lead.

Matthews scored at 15:28 with Samsonov for an extra attacker. Matthews scored again with Samsonov out at 18:53 to send the game to an extra period.

Samsonov saved Monteal's last penalty shot attempt to cement the win for the Maple Leafs,

More must-reads:

TODAY'S BEST
Pacers' Pascal Siakam leads team to Game 6 win vs. Knicks
Watch: Matt Duchene's 2OT winner sends Stars to conference final
Scottie Scheffler shoots improbable 66 after warming up for PGA Championship in a jail cell
Report: Tua Tagovailoa away from Dolphins amid contract chatter
Nuggets star has worrying comment about latest injury
Paul Skenes makes incredible Wrigley Field history in second-career MLB start
Giants rookie CF to undergo season-ending labrum surgery
Yankees' Juan Soto reacts to Hal Steinbrenner contract talk
Late goal sends Panthers to Eastern Conference Finals
Ex-teammate of Shohei Ohtani placed bets with same illegal bookmaker as interpreter 
Former Rams first-round pick retires from NFL after 11 seasons
Insider provides major injury update on Celtics' Kristaps Porzingis
Watch: Bruins strike first in Game 6 with incredible backhand goal
Dodgers make series of moves involving notable players
Hurricanes not expected to re-sign defenseman, center
Maple Leafs tab former Stanley Cup winner as new head coach
NFL insider expands on competition between Steelers QBs Russell Wilson, Justin Fields
NFL sets outrageous prices for Eagles-Packers Brazil game
Broncos 'very unlikely' to bring back former NFL interceptions leader
Greg Olsen offers broadcasting advice to Tom Brady

Want more sports news?

Join the hundreds of thousands of fans who start their day with Yardbarker's Morning Bark, the best newsletter in sports.