Maria Sharapova is retiring from professional tennis at the age of 32 after five Grand Slam titles and time ranked No. 1.

She has been dealing with shoulder problems for years.

Sharapova played only two matches this season and lost both.

Russia's Maria Sharapova, left, congratulates Croatia's Donna Vekic after winning their first round singles match at the Australian Open tennis championship in Melbourne, Australia, Tuesday, Jan. 21, 2020. (AP PhotoLee Jin-man)

Russia's Maria Sharapova, left, congratulates Croatia's Donna Vekic after winning their first round singles match at the Australian Open tennis championship in Melbourne, Australia, Tuesday, Jan. 21, 2020. (AP PhotoLee Jin-man)

In an essay written for Vanity Fair and Vogue about her decision to walk away from the sport, posted online Wednesday, Sharapova asks: “How do you leave behind the only life you’ve ever known?”

She burst onto the tennis scene at 17 when she won Wimbledon in 2004 and would go on to complete a career Grand Slam with two titles at the French Open and one each at the U.S. Open and Australian Open.

The Russian, who moved to Florida as a child, served a 15-month ban after failing a doping test in 2016.

More AP tennis: https://apnews.com/tag/apf-Tennis and https://twitter.com/AP_Sports