A tennis legend is calling it quits ... Maria Sharapova just announced she's done with the sport for good.
"Tennis -- I’m saying goodbye," Sharapova wrote Wednesday.
"Tennis showed me the world -- and it showed me what I was made of," the 32-year-old added. "It's how I tested myself and how I measured my growth."
"And so in whatever I might choose for my next chapter, my next mountain, I'll still be pushing. I’ll still be climbing. I'll still be growing."
Sharapova was a former No. 1 player in the world ... and won five career Grand Slams -- including Wimbledon in 2004 when she was just 17 years old.
Of course, Sharapova also gained a ton of fame from her rivalry with Serena Williams ... which was more of complete and utter dominance than actual competitiveness.
In 23 career matchups ... Serena won 20 of them, including 18 in a row at one point!!
Maria, though, still won the U.S. Open in 2006, the Australian Open in 2008 and the French Open twice in 2012 and 2014.
But, Maria's career didn't come without controversy ... she tested positive for a banned substance in 2016 and was ultimately suspended from the game for 15 MONTHS.
In fact, the test caused such a backlash in the tennis world ... Genie Bouchard straight-up called her a "cheater" who deserved a lifetime ban.
Sharapova -- who battled numerous shoulder injuries throughout her career -- said Thursday of all the ups and downs in her career, "I realize that tennis has been my mountain."
"My path has been filled with valleys and detours, but the views from its peak were incredible. After 28 years and five Grand Slam titles, though, I'm ready to scale another mountain -- to compete on a different type of terrain."