DETROIT — Tomas Tatar broke out of a scoring slump.
The Red Wings did, too.
Tatar got his first career hat trick, helping Detroit beat the Ducks 6-4 on Saturday night to get a desperately needed win with a breakout offensive performance.
"It's perfect timing," he said.
Tatar got his third goal early in the third period, putting the puck on both sides of his stick before flipping it over goalie John Gibson.
Detroit scored more goals (four) in the first two periods than it had totaled over its previous four games combined — all home losses — and finished with a season scoring high.
"We knew we weren't good enough the last four games," Tatar said.
The Red Wings face the Lightning on Tuesday at Amalie Arena.
Detroit has needed Tatar to play better, too.
The Czech wing almost matched the number of goals (four) he scored in his first 31 games of the season. Tatar, who made his NHL debut during the 2010-11 season, scored a career-high 29 goals two years ago and had 21 goals last season.
Xavier Ouellet scored his first of the season and third of his career with 2:08 left in the second period to put the Red Wings ahead 4-3, their first lead in five games.
Petr Mrazek helped Detroit keep the lead, finishing with 21 saves.
Anaheim's Jonathan Bernier stopped 17 shots through two periods before being pulled by Ducks coach Randy Carlyle.
"He wanted to turn things around and spark the team," Bernier said.
Rakell and Shea Theodore scored in the first period, giving the Ducks a 2-0 lead that seemed safe against a team that has been struggling to score. Cam Fowler gave them another two-goal lead early in the second.
Tatar, though, pulled Detroit within a goal for the second time, and quickly the Red Wings figured out a way to score.
A little luck helped.
Tatar shot the puck, and it went off the left skate of Fowler, caromed off the end boards and went off the back of Bernier's left leg and into the net.
"It's a tough building when you're not used to those bounces," Bernier said.
NOTES: Mrazek wore a holiday-themed mask, featuring Will Ferrell's Buddy character from the movie "Elf." … Detroit plays 10 of its next 11 games on the road, starting Monday at Carolina. … Anaheim's Andrew Cogliano has played in 736 straight games, dating to 2007, the longest active streak, and is one game from tying Jay Bouwmeester for fifth on the NHL's all-time list. Doug Jarvis played in a league-record 964 consecutive games from 1975-87. … Detroit defenseman Mike Green was hurt in the final minute, skated off the ice and didn't stop on the bench en route to the locker room.