Patrick Maroon scored twice and the Edmonton Oilers won at Rexall Place for the final time, beating the Vancouver Canucks 6-2 on Wednesday.

Nail Yakupov, Connor McDavid, Leon Draisaitl and Taylor Hall also scored for the Oilers, who snapped a three-game losing skid.

Matt Bartkowski and Bo Horvat scored for the Canucks, who had their three-game winning end.

It was the final NHL game scheduled to be played at Rexall, with the Oilers moving into a new downtown arena in the fall.

The Oilers have played in the building since 1974 when they were in the World Hockey Association.

More than 150 Oilers alumni were on hand for the farewell game and lengthy postgame ceremony, including the likes of Hall of Famers Wayne Gretzky, Mark Messier, Jari Kurri, Paul Coffey, Glenn Anderson and Grant Fuhr.

The Oilers scored first, 8:27 into the second period when Yakupov brought a puck out of the corner and sent a wrist shot over Vancouver goalie Jacob Markstrom's shoulder for his eighth goal of the season.

Edmonton made it 2-0 with seven minutes left in the second as Maroon picked off Emerson Etem's pass in front of the Vancouver net and whirled around to score his sixth goal and 12th point in 15 games since joining the Oilers.

The Oilers added to their lead with a power-play goal late in the second as McDavid got to a rebound and was able to poke in his 16th of the season.

The Canucks got one past Edmonton goalie Cam Talbot five minutes into the third period as Bartkowski's shot went off the stick of Edmonton defender Adam Pardy and in the net.

Edmonton bounced back with a pair of goals just 18 seconds apart midway through the third. McDavid started a cycle that ended with Maroon scoring his second on a tip-in, followed quickly by Hall turning using his speed and scoring on a backhand.

Horvat got one back for the Canucks, walking around a defender for his 15th.

Draisaitl scored a power-play goal with less than two minutes remaining, recording the final goal scored at Rexall.

NOTES: The Canucks play in Calgary on Thursday before returning home to face the Oilers again on Saturday in the final game of the season for both teams.