Rookie Sam Steel recorded his first NHL hat trick and the Anaheim Ducks beat the Vancouver Canucks 5-4 Tuesday night.

The Canucks rallied from a 5-2 deficit late in the third period, but couldn’t complete the comeback and dropped their third straight game.

Rickard Rakell and Kiefer Sherwood also scored for the Ducks.

Anaheim Ducks goalie Ryan Miller, front right, tosses a puck into the crowd after catching it when it went out of play during the second period of an NHL hockey game in Vancouver, British Columbia, Tuesday, March 26, 2019. (Darryl Dyck/The Canadian Press via AP)
Anaheim Ducks goalie Ryan Miller, front right, tosses a puck into the crowd after catching it when it went out of play during the second period of an NHL hockey game in Vancouver, British Columbia, Tuesday, March 26, 2019. (Darryl Dyck/The Canadian Press via AP)

Jake Virtanen, Alex Edler, Josh Leivo and Tanner Pearson scored for the Canucks.

Jacob Markstrom made 19 saves for Vancouver. Anaheim’s John Gibson had 28 saves.

Despite the win, the Ducks were eliminated from playoffs contention after the Arizona Coyotes beat the Chicago Blackhawks on Tuesday.

Anaheim Ducks' Sam Steel (34) kicks the puck ahead to his stick and scores against Vancouver Canucks goalie Jacob Markstrom (25), of Sweden, during the second period of an NHL hockey game in Vancouver, British Columbia, Tuesday, March 26, 2019. (Darryl Dyck/The Canadian Press via AP)
Anaheim Ducks’ Sam Steel (34) kicks the puck ahead to his stick and scores against Vancouver Canucks goalie Jacob Markstrom (25), of Sweden, during the second period of an NHL hockey game in Vancouver, British Columbia, Tuesday, March 26, 2019. (Darryl Dyck/The Canadian Press via AP)

The Ducks first goal of the game was the result of a bobbled offensive play by the Canucks.

Josh Teves had his shot blocked and his defensive partner Alex Biega fell trying to corral the puck.

Steel picked it up, beating Teves and Canucks rookie Elias Pettersson down the ice for a breakaway. He got a wrist shot past Markstrom to open the scoring 9:09 into the first period.

Vancouver Canucks goalie Jacob Markstrom, of Sweden, reaches for the puck after stopping Anaheim Ducks' Troy Terry, not seen, during the second period of an NHL hockey game in Vancouver, British Columbia, Tuesday, March 26, 2019. (Darryl Dyck/The Canadian Press via AP)
Vancouver Canucks goalie Jacob Markstrom, of Sweden, reaches for the puck after stopping Anaheim Ducks’ Troy Terry, not seen, during the second period of an NHL hockey game in Vancouver, British Columbia, Tuesday, March 26, 2019. (Darryl Dyck/The Canadian Press via AP)

He added another goal 12:16 into the second, scoring off a rebound.

Steel completed the hat trick before the end of the second period.

Canucks center Markus Granlund was called for hitting a broken stick near the blue line that careened into the puck.

Anaheim Ducks' Sam Steel, back center, celebrates his goal as Vancouver Canucks' Elias Pettersson, right, of Sweden, looks on during the first period of an NHL hockey game in Vancouver, British Columbia, Tuesday, March 26, 2019. (Darryl Dyck/The Canadian Press via AP)
Anaheim Ducks’ Sam Steel, back center, celebrates his goal as Vancouver Canucks’ Elias Pettersson, right, of Sweden, looks on during the first period of an NHL hockey game in Vancouver, British Columbia, Tuesday, March 26, 2019. (Darryl Dyck/The Canadian Press via AP)

The rules say a penalty shot should be awarded if a player in his defensive zone throws or shoots a stick or any other piece at the puck or another player carrying the puck.

Steel’s backhand shot sailed over Markstrom’s glove. The 21-year-old was playing just his 18th NHL game.

The Ducks picked Steel 30th overall in the 2016 draft and he was called up from the American Hockey League on Saturday when center Ryan Getzlaf was scratched from Anaheim’s lineup with an upper-body injury.

Anaheim Ducks' Corey Perry (10) takes a shot on goal as Vancouver Canucks' Alex Biega (55) defends during the first period of an NHL hockey game in Vancouver, British Columbia, Tuesday, March 26, 2019. (Darryl Dyck/The Canadian Press via AP)
Anaheim Ducks’ Corey Perry (10) takes a shot on goal as Vancouver Canucks’ Alex Biega (55) defends during the first period of an NHL hockey game in Vancouver, British Columbia, Tuesday, March 26, 2019. (Darryl Dyck/The Canadian Press via AP)

Virtanen put the Canucks on the board 12:48 into the first, grabbing the puck in the neutral zone and streaking up ice. He took a back-handed shot near the goal line. The puck hit the skate of Ducks defenseman Cam Fowler and slid through Gibson’s legs.

Edler added another goal with just a minute to go in the first period, scoring on a shot from the point through traffic. The shot hit Anaheim’s Corey Perry and bounced in past Gibson.

The goal was the 93rd of Edler’s career, tying him with Mattias Ohlund for most goals by a defenseman in Canucks’ history.

Vancouver Canucks' Alexander Edler, front, of Sweden, checks Anaheim Ducks' Devin Shore during the first period of an NHL hockey game in Vancouver, British Columbia, Tuesday, March 26, 2019. (Darryl Dyck/The Canadian Press via AP)
Vancouver Canucks’ Alexander Edler, front, of Sweden, checks Anaheim Ducks’ Devin Shore during the first period of an NHL hockey game in Vancouver, British Columbia, Tuesday, March 26, 2019. (Darryl Dyck/The Canadian Press via AP)

Rakell added a power-play goal for Anaheim 7:44 into the third after Teves was called for hooking.

Minutes later, Sherwood scored on a shot from the point.

Leivo brought the Canucks back within two 13:34 into the third period, scoring on a wrist shot over Gibson’s glove.

Vancouver Canucks' Elias Pettersson, left, of Sweden, and Anaheim Ducks' Sam Steel collide during the first period of an NHL hockey game in Vancouver, British Columbia, Tuesday, March 26, 2019. (Darryl Dyck/The Canadian Press via AP)
Vancouver Canucks’ Elias Pettersson, left, of Sweden, and Anaheim Ducks’ Sam Steel collide during the first period of an NHL hockey game in Vancouver, British Columbia, Tuesday, March 26, 2019. (Darryl Dyck/The Canadian Press via AP)

Pearson swatted a puck through heavy traffic in front of the Anaheim net and beat a diving Gibson to add Vancouver’s final goal with just over five minutes to go.

NOTES: Steel is the youngest player in Ducks history to score a hat trick in the regular season. … Anaheim was playing without former Canucks center Ryan Kessler, who is listed as day-to-day with a hip injury. … Teves made his NHL debut on Tuesday. The Canucks signed the 24-year-old Calgary native to a one-year deal earlier this month after he wrapped his senior season with the Princeton University Tigers.

UP NEXT

Anaheim Ducks goalie John Gibson makes a glove save during the second period of an NHL hockey game against the Vancouver Canucks in Vancouver, British Columbia, Tuesday, March 26, 2019. (Darryl Dyck/The Canadian Press via AP)
Anaheim Ducks goalie John Gibson makes a glove save during the second period of an NHL hockey game against the Vancouver Canucks in Vancouver, British Columbia, Tuesday, March 26, 2019. (Darryl Dyck/The Canadian Press via AP)

Ducks: At Calgary on Friday.

Canucks: Host Los Angeles Kings on Thursday.

___

Anaheim Ducks goalie Ryan Miller, second right, catches a puck that went out of play as Corey Perry (10) reaches for it and Anaheim Ducks' Jaycob Megna, left, and Cam Fowler, second left, cover their faces during the second period of an NHL hockey game in Vancouver, British Columbia, Tuesday, March 26, 2019. (Darryl Dyck/The Canadian Press via AP)
Anaheim Ducks goalie Ryan Miller, second right, catches a puck that went out of play as Corey Perry (10) reaches for it and Anaheim Ducks’ Jaycob Megna, left, and Cam Fowler, second left, cover their faces during the second period of an NHL hockey game in Vancouver, British Columbia, Tuesday, March 26, 2019. (Darryl Dyck/The Canadian Press via AP)