A US citizen trapped in Turkey's third deepest cave for more than a week has been pulled to safety, rescuers say.
More than 150 people were involved in efforts to save caver Mark Dickey after he developed stomach problems in the Morca Cave on 2 September.
Organisers say it was one of the largest and most complicated underground rescues ever mounted.
The lowest point of the Morca Cave, in a remote part of the south, reaches nearly 1.3km (0.8 miles) below ground.
Mr Dickey was brought out of the cave at 00:37 local time (21:37 GMT), the Turkish Caving Federation announced on social media.
Carl Heitmeyer of the New Jersey Initial Response Team, a group Mr Dickey leads, confirmed for BBC News that the caver had been rescued and he expressed his thanks to all those involved in the operation.
Mr Dickey's parents Debbie and Andy Dickey said the "international caving community" had "made it possible for Mark to leave Morca cave and receive further medical treatment at a hospital facility".
They said their son's rescue was "indescribably relieving" and filled them with "incredible joy".
"Mark is strong and we believe in his strength, but fully knew that he was in dire need of tremendous and immediate support," they said.
"Our prayers have been, and are, being answered and it is hard to express the magnitude of thanks we have for the international caving community."

NATIONAL CAVE RESCUE COMMISSION/REUTERS
Mr Dickey had been co-leading a team to map a new passage in the cave when he began to suffer from gastrointestinal bleeding.
His condition improved after he was given a blood transfusion. He was then strapped to a stretcher and was slowly carried out.
This involved navigating through tight rock tunnels and explosives had to be used at the narrowest points, according to CBS, the BBC's US partner.
A number of rescue workers from several other countries, including Croatia and Hungary, flew to Turkey to assist in the rescue.
Mr Dickey's fiancee, Jessica Van Ord, also helped. She had remained in the cave with him while he was unwell but later climbed out.
On Thursday evening, in a video message from inside the cave, Mr Dickey thanked the people attempting to rescue him.

"I do know that the quick response of the Turkish government to get the medical supplies that I need, in my opinion, saved my life," he said. "I was very close to the edge."
Mr Dickey, who hails from New Jersey, is said to be a hardened caver with over 20 years' experience.
He has been an instructor with the US National Cave Rescue Commission for 10 years, teaching a variety of cave rescue classes. He is also listed as the body's International Exchange Program Co-ordinator on its website.
He had been co-leading the expedition to the Morca Cave since the end of August, according to the Hungarian Cave Rescue Service, who have also been assisting with the operation.
Latest Stories
-
“We need to stop seeing each other as competition” – King Promise
6 minutes -
Caveman hosts GEPA as part of efforts to strengthen Ghana’s export drive
6 minutes -
Adu-Boahene ready to reveal classified information to defend himself – Atta Akyea
11 minutes -
‘No one is calling Sammy Gyamfi a thief’ – Effia MP
14 minutes -
Mahama’s code of conduct is useless if he fails to act on Sammy Gyamfi – Nana Boakye
34 minutes -
Blackstar Experience will facilitate the establishment of well-resourced record labels – Rex Omar
36 minutes -
Interdict Sammy Gyamfi immediately to allow for investigations – NPP urges Mahama
44 minutes -
I don’t force hits and follow trends – King Promise
51 minutes -
betPawa doubles Locker Room Bonus for Malta Guinness Women’s Premier League final
55 minutes -
HATOF Foundation CEO honoured for climate change work at Millennium Excellence Awards
59 minutes -
Sammy Gyamfi’s case has put Mahama to the test, he must show leadership – NPP
1 hour -
Bank of Ghana to mark Cedi@60 on July 19
1 hour -
Sammy Gyamfi’s right to privacy was breached – Martin Kpebu on dollar gift saga
1 hour -
Adu-Boahene rearrested over GWCL contract – Atta Akyea
2 hours -
Private citizen petitions CHRAJ over Sammy Gyamfi’s dollar-sharing incident
2 hours