(The Sports Xchange) - Ray Allen, a 10-time All-Star and two-time NBA champion, officially announced his retirement after 18 seasons on Tuesday.

Allen last played in the 2013-14 season and has been tied to rumors of a potential return ever since. On Tuesday, he wrote a letter for The Players' Tribune saying he is walking away for good.

"I write this to you today as a 41-year-old man who is retiring from the game," Allen wrote. "I write to you as a man who is completely at peace with himself."

A likely first-ballot Hall of Famer, Allen had career averages of 18.9 points, 4.1 rebounds and 3.4 assists in 1,300 games.

He departs as the NBA's all-time leader in 3-pointers made (2,973), and established himself as one of the greatest 3-point and free-throw shooters, boasting career marks of 40 and 89.4 percent respectively.

Originally a No. 5 overall pick of the Minnesota Timberwolves in the 1996 draft, Allen was immediately traded along with Andrew Lang to the Milwaukee Bucks for the rights to draft Stephon Marbury.

Allen spent his first 6 1/2 seasons with the Bucks, earning a spot on the NBA All-Rookie Second Team in 1996.

On Feb. 20, 2003, Allen was traded along with Ronald Murray, Kevin Ollie and a first-round draft pick to the Seattle Super Sonics for Gary Payton and Desmond Mason.

He spent 4 1/2 years in Seattle before the trade that transformed his already stellar legacy to a championship one.

Allen was acquired by the Boston Celtics along with Glen Davis for Jeff Green, Wally Szczerbiak, Delonte West and a second-round pick in a draft-night deal on June 28, 2007.

That trade laid the groundwork for Celtics president of basketball operations Danny Ainge to acquire Kevin Garnett from the Timberwolves to pair with longtime Boston stars Paul Pierce and Allen.

In their first season together, Allen, Garnett and Pierce ended the Celtics' 22-year championship drought -- and Allen took home his first ring.

After five years in Boston, Allen spurned the Celtics in free agency to join the rival Miami Heat, where he would team with LeBron James and Dwyane Wade to win another championship in 2013.

During a hard-fought, seven-game NBA Finals series with the San Antonio Spurs, Allen made a critical last-second 3-pointer in Game 6 to keep the Heat alive and ultimately lead them to a title.

Allen and the Heat returned to the Finals the next season, only to lose to the Spurs.

Off the court, Allen earned a place in pop-culture lore for his role as "Jesus Shuttlesworth" in the Spike Lee-directed film "He Got Game," released in 1998.

(Editing by Mark Lamport-Stokes)