Cam Fowler scored a power-play goal in the third period, lifting the Ducks over the Maple Leafs 3-2 on Monday night in Anaheim coach Randy Carlyle's return to Toronto.
Carlyle was at Air Canada Centre for the first time since he was dismissed as Leafs coach almost two years ago.
Anaheim had a pair of power-play goals, including Fowler's go-ahead score. Ryan Getzlaf had the other man-up tally, and Nick Ritchie also scored for the Ducks. John Gibson made 33 saves.
Former Ducks goaltender Frederik Andersen made 25 stops for the Leafs. Auston Matthews got his ninth goal in 12 games, and Nazem Kadri scored his 11th of the season.
Toronto went ahead in the first period when Zach Hyman helped free the puck loose from Getzlaf along the wall. Nikita Zaitsev's point shot was then redirected by Matthews with one hand on his stick.
It was Matthews's team-leading 15th goal of the year. He sits second among NHL rookies in goals (15) and points (24), trailing only Winnipeg's Patrik Laine.
Andersen was sharp facing his former team for the first time since a summer trade from Anaheim. He made a right pad stop on Rickard Rakell's redirection in the opening moments of the second, then came up with two stops on a Ducks rush later in the period. He later shut down a break for Getzlaf and Corey Perry, setting himself square to Perry's chance from in tight.
Getzlaf tied it at 1 with less than two minutes to go in the middle frame. It was an awkward power-play goal, his shot caroming off the legs of Leafs defenders Morgan Rielly and Roman Polak in front before beating Andersen.
The Ducks went ahead after barely one minute had gone by in the third. The play started when William Nylander turned the puck over trying to make a move around an Anaheim player at his own blue-line. Ondrej Case eventually set up Ritchie in front for his eighth goal of the year.
Toronto had an opportunity to tie it on a power play shortly after, but Gibson came up big when required. He made an emphatic glove stop of Kadri and then got in front of Matthews's one-time attempt in the slot.
It was a strange shot that ultimately beat Gibson and evened the score at two, with Kadri whipping a shot from the point that banged off the leg of former Leaf Korbinian Holzer in front.
Fowler put the Ducks back in front with less than seven minutes left in the third. Ryan Kesler won the faceoff, setting up Fowler for the one-time shot.
NOTES: Toronto went 0 for 3 with the power play. ... Toronto pulled Andersen with just under three minutes left in regulation, but could not tie the game.
Ducks: Play at Montreal on Tuesday night.
Maple Leafs: Play at Colorado on Thursday night.