Barry Trotz has been hired as head coach of the New York Islanders.

TSN Hockey Insider Pierre LeBrun reports Trotz is joining the team on a five-year deal worth more than $4 million annually.

Trotz resigned from his position as head coach of the Washington Capitals on Monday, just days after winning the Stanley Cup with the team.

The Islanders were the only NHL team, aside from the Capitals, with a head coaching vacancy after president of hockey operations Lou Lamoriello fired Doug Weight and general manager Garth Snow shortly after joining the team.

“Barry brings to the New York Islanders franchise a tremendous amount of knowledge, experience and success,” Lamoriello said in a release. “He is and has been one of the top coaches in the National Hockey League. I am excited to have the opportunity to work with him.”

A native of Dauphin, Man., the 55-year-old Trotz is the fifth-winningest coach in NHL history with 762 victories, trailing only Scotty Bowman, Joel Quenneville, Ken Hitchcock and Al Arbour.

LeBrun noted earlier this week that Trotz had a clause in his contract where a Stanley Cup victory triggered a two-year extension with the Capitals that came with a $300,000 raise. Even taking into account the raise, Trotz would have been set to make $1.8 million with the Capitals, which wouldn’t be commensurate to Trotz's experience in regards to 2018 coaching salaries and Trotz had to step down if he didn't agree to those terms.

Prior to his four seasons with the Caps, Trotz spent 15 seasons behind the bench with the Nashville Predators.

With the Caps, Trotz won the Presidents' Trophy as the league's best regular-season team on two occasions (2016 and 2017) and Trotz was the recipient of the Jack Adams Trophy as the NHL's top coach in 2016.

Over his four seasons behind the bench in D.C., the Capitals won 205 regular-season games, the most of any team during that stretch.

Trotz was the first head coach to resign after a Stanley Cup victory since Bowman ended his coaching career with the Red Wings in 2002.