Cleveland Cavaliers guard Ricky Rubio announced over the summer that he would be stepping away from basketball to focus on his mental health. 

On Thursday, he announced his retirement after 12 seasons in the NBA. 

Ricky Rubio, #3 of the Cleveland Cavaliers, looks on during the third quarter of a NBA game against the New Orleans Pelicans at Smoothie King Center on Dec. 28, 2021 in New Orleans.

Ricky Rubio, #3 of the Cleveland Cavaliers, looks on during the third quarter of a NBA game against the New Orleans Pelicans at Smoothie King Center on Dec. 28, 2021 in New Orleans. (Sean Gardner/Getty Images)

Rubio, who also had a prolific international career representing his native Spain, penned an open letter to fans on social media to share his decision, adding that he is still "working" on his mental health. 

CLICK HERE FOR MORE SPORTS COVERAGE ON FOXNEWS.COM

"I wanted to post this message for you today because my NBA career has come to an end," the letter, posted to X, read. 

"It all started [in] June 2009, draft night in New York. What a dream. After playing 12 years in the league, with all its ups and downs, I have collected lots of good memories and great relationships. Minnesota, Utah, Phoenix and Cleveland. Wow. Thank you!"

Ricky Rubio shoots a free throw

Ricky Rubio, #3 of the Cleveland Cavaliers, shoots a free throw during the game against the Washington Wizards on Dec. 3, 2021 at Capital One Arena in Washington, D.C. (Stephen Gosling/NBAE via Getty Images)

Rubio, who won a gold medal with Spain in the 2019 World Cup, stepped away from the sport citing mental health concerns in August. 

FROM OUTKICK: RICKY RUBIO IS RETIRING FROM THE NBA – A LOOK BACK AT ONE OF THE MOST UNDERRATED HIGHLIGHT MIXTAPES EVER

"I have decided to stop my professional activity to take care of my mental health," he said in a statement at the time. "I want to thank all the support I have received from the FEB (Spanish Basketball Federation) to understand my decision. Today #LaFamilia makes more sense than ever. Thank you."

At the time, Cavaliers general manager Koby Altman released a statement in support of Rubio’s decision. 

"We understand how difficult of a decision this was for him and will balance providing whatever support we can while simultaneously respecting Ricky’s request for privacy."

NUGGETS' NIKOLA JOKIC HITS WILD BUZZER-BEATING BANKED 3 TO STUN WARRIORS

Rubio’s letter on Thursday did not mention any specifics, but he clarified that he is still working on his mental health after his "mind went to a dark place." 

"One day, when the time is right, I would love to share my full experience with you all so I can help support others going through similar situations. Until then, I would like to keep it private out of respect for my family and myself, as I'm still working on my mental health. But I'm proud to say I'm doing much better and getting better everyday."

Ricky Rubio dribbles during a Cavaliers game

Ricky Rubio, #13 of the Cleveland Cavaliers, brings the ball up court in the fourth quarter during their game against the Charlotte Hornets at Spectrum Center on March 12, 2023 in Charlotte, North Carolina. (Jacob Kupferman/Getty Images)

CLICK HERE TO GET THE FOX NEWS APP

Rubio was drafted in the first round by the Minnesota Timberwolves in 2009 and spent seven seasons with the team before going to Utah. He missed the majority of the past two seasons while recovering from a torn left ACL, and he returned to the Cavs primarily as a reserve for 33 games at the end of last season.

"Special mention to Cleveland. My last home. I know the way things ended have been tough. I could never have imagined the year would develop this way, but you have an amazing organization, with Koby and JB, who have been extremely respectful and understanding of my situation and caring for me as a person. Thank you all for the love and support!" 

The Associated Press contributed to this report.

Follow Fox News Digital’s sports coverage on X and subscribe to the Fox News Sports Huddle newsletter.