DETROIT -- Bo Horvat scored his first NHL hat trick in the third period, and the Vancouver Canucks rallied for a 5-2 victory against the Detroit Red Wings at Little Caesars Arena on Tuesday.
Horvat finished with five goals on the Canucks' four-game road trip (3-1-0).
"That was a lot of fun," said Horvat, who grew up about two hours away in London, Ontario. "I had a lot of friends and family in the building to see it, and it came at a huge part of the game."
[WATCH: All Canucks vs. Red Wings highlights]
Vancouver (6-3-0) scored each of its five goals in the third period to win for the sixth time in seven games. Quinn Hughes, J.T. Miller and Elias Pettersson each had two assists, and Jacob Markstrom made 31 saves.
"We talked this morning about doing a better job holding two-goal leads, and we end up coming back from one," Canucks coach Travis Green said.
Video: Enterprise Hat Trick: Horvat nets hat vs. Red Wings
Detroit (3-6-0) lost its fifth straight game. The Red Wings, who went 2-for-7 on the power play, held a 2-0 lead after the second period on goals by Anthony Mantha and Dennis Cholowski, and Jimmy Howard made 36 saves.
"We know we have the players and the skill to bounce back from this," Cholowski said. "We have to score more goals; we only got a couple tonight, and we've got to find a way to keep the puck out of our net."
Detroit has been outscored 22-7 during the losing streak.
"The teams in this league are so close together that it becomes really hard to keep digging yourself out when you are giving up so many goals," Red Wings coach Jeff Blashill said. "We don't score easily, so we've got to find a way to get more goals."
Mantha scored his seventh goal of the season during a 5-on-3 power play at 16:08 of the first period to give Detroit a 1-0 lead.
Video: VAN@DET: Mantha scorches Hronek's dish on power play
Cholowski made it 2-0 at 9:19 of the second while the Red Wings were on a 4-on-3 man-advantage. Detroit held the lead at the end of the period, but Tyler Bertuzzi took a tripping penalty at 19:59.
"That's a situation where you are trying so hard that you end up taking a penalty with one second left," Blashill said. "That's something you can't do."
Vancouver scored the third power-play of the game at 1:42 of the third when Horvat poked a rebound past Howard to make it 2-1.
Cholowski took a penalty six seconds after the goal, and Horvat redirected Hughes' point shot to tie it 2-2 at 3:13.
"We knew we had to get a power-play goal at the start of the second, but it was huge to get two that quickly," Horvat said. "Once we got it tied, we were able to take over the game."
Virtanen gave the Canucks a 3-2 lead at 12:19 on an even-strength goal. Filip Hronek tipped Virtanen's attempted pass into his own net with Horvat charging into the crease.
"I wasn't even thinking about shooting," Virtanen said. "I saw Bo flying down the middle and I was trying to get him the puck. I'm still not sure if it hit the defenseman's stick or skate, but I'll take it."
Tim Schaller scored at 14:21 with his first goal of the season to make it 4-2, and Horvat completed his hat trick with an empty-net goal at 18:48 for the 5-2 final.
"[Horvat] really seemed to find his stride on this trip," Green said. "He's had a lot going on early in the season, especially being named captain. You have to think that was weighing on him a little with all the media attention and everything, but he's really played well on this trip and especially tonight."
Video: VAN@DET: Virtanen banks puck in to put Canucks ahead
They said it
"We talked this morning about how big it would be to go home with three wins instead of two. These are the games you have to win if you want to make the playoffs." -- Canucks forward Jake Virtanen
"Obviously, the third period got away from us. We took a penalty with one second left in the second period, and then a careless high-sticking penalty right after they scored. Even after they made it 2-2, I thought we had some good shifts, but the third and fourth goals really took it out of us." -- Red Wings center Dylan Larkin
Need to know
It was the sixth time the Canucks have scored five goals in the third period, and the first since April 15, 1993. … The Red Wings' two power-play goals were the first of the losing streak.
Canucks: Host the Washington Capitals on Friday (10 p.m. ET; ESPN+, SN1, NBCSWA+, NHL.TV)
Red Wings: At the Ottawa Senators on Wednesday (7:30 p.m. ET; SN360, SN1, RDS2, FS-D+, NHL.TV)
Video: Horvat's hatty fuels Canucks' 5-2 win in Detroit