Rafael Nadal has confirmed he will not play again this season and says he will undergo appendix surgery next month.
The 14-time Grand Slam title winner will therefore miss November's ATP World Tour Finals in London.
Nadal, 28, made his announcement after losing 6-2 7-6 (7-4) to Croatian teenager Borna Coric in the quarter-finals of the Swiss Indoors on Friday.
"I'm not going to Paris and London - I'm not competitive enough," the nine-time French Open champion said.
"I am going to have surgery on 3 November."

BBC tennis correspondent Russell Fuller

"Rafael Nadal's absence clearly boosts Andy Murray's chances of qualifying for London, but should he lose to David Ferrer in the semi-finals in Valencia, he will still have work to do at the Paris Masters, where he has once again been handed a tough draw."
Nadal had already qualified for the ATP World Tour Finals event, so the Spaniard's withdrawal means the player ranked ninth in the final ATP Race to London rankings will make it through to the season-ending event at the O2 in Greenwich.
Britain's Andy Murray will compete in next week's Paris Masters, which is the final ranking event of the season.
The Scot, 27, currently lies in eighth position in the Race to London standings.

Contenders for the final places in the Race to London

Race to London positionPlayerNationality
7
Tomas Berdych (lost in Valencia first round)
Cze
8
Andy Murray (into Valencia semis)
GB
9
Milos Raonic (lost in Basel quarters)
Can
10
David Ferrer (into Valencia semis)
Spa
11
Grigor Dimitrov (into Basel quarters)
Bul
The Swiss Indoors in Basel was just the third tournament Nadal had played since Wimbledon following a wrist injury, and he revealed earlier this month that he was on a course of antibiotics for his appendix.
Coric, 17, showed no fear as he raced into a 5-0 lead against a wayward Nadal and held his nerve to secure a stunning victory.
Coric learned his tennis travelling between Zagreb and north London under the guidance of British coach Ryan Jones, although the pair have gone their separate ways in recent days.
The Croat goes on to face Belgian David Goffin in the semi-finals, with Ivo Karlovic up against Roger Federer or Grigor Dimitrov in the opposite half.