GLENDALE, Ariz. (AP) — Arizona Coyotes captain Shane Doan had chances to leave the desert for a better shot at winning the Stanley Cup.

Every time, he resisted the urge, a loyalty that cemented his legacy as one of the most beloved athletes in Valley of the Sun history.

Now, Doan is hanging up his skates, leaving as one of nine NHL players to play at least 21 seasons with the same franchise.

“I’ve been blessed and I’m so grateful for the fans and their support,” Doan wrote in a letter published by The Arizona Republic on Wednesday. “They stuck by me throughout my career and the ups and downs of the Coyotes. There are a lot of players with more skill than me and a lot more ability than me that didn’t ever get the type of appreciation that I got and the type of respect that the fans gave me, and I’m so grateful for that. I can’t express how much I appreciate it.”

Doan became a Phoenix icon through his hard-working and thoughtful ways. He was the last player off the ice after nearly every Coyotes practice, often entering the locker room out of breath and drenched in sweat.

Doan was the consummate captain, someone who led by example, was both comforting and demanding of his teammates at the same time. He gave back to the community like few athletes have and always had a friendly smile and handshake for fans who wanted to say hello or take a photo with him.

“On behalf of the entire Arizona Coyotes organization, our fans and our corporate partners, we would like to thank Shane for everything that he’s done for our franchise over the past 21 years,” the Coyotes said in a statement. “Shane had an incredible career on the ice and we are very proud of everything that he accomplished in a Coyotes uniform. He will be remembered as one of the greatest captains in…