After 17 days underground, all the Thai boys and their football coach have safely escaped from the Tham Luang cave complex.
A team of Thai and international divers mounted a dangerous and complicated rescue to bring the boys out, and details of the bid are still emerging now.
BBC correspondent Jonathan Head has answered some of the core questions about the boys, the rescue attempt, and what happens next.
Why did the kids go so deep into the cave?
We will not know that until we hear from them and their assistant coach, Ekkapol ‘Ek” Chantawong.
On that Saturday they were scheduled to play a match, which was cancelled, according to head coach Nopparat Kanthawong. He scheduled a training session instead.
The boys were keen cyclists so on the Facebook chat group through which they communicated with the parents, coach Ek suggested they cycle to the football field.
There was no suggestion there that they would go on to the caves.
Saturday was the 16th birthday of Pheeraphat ‘Night’ Sompiengjai, and a local shop said the boys spent more than 700 baht (US$22) on food to celebrate, a large sum in this area.
Coach Nop describes Ek as being very kind-hearted and devoted to the boys. He thinks the boys persuaded him to go with them into the caves. The caves are well-known in the area and had been explored by the boys before.
The best guess is they went quite deep, which is easy when they are dry, got caught by rising flood water, and were forced to go even deeper.
What kind of communication have the children had with their parents and why are they not being allowed to see them?
The official explanation is they are weak from their ordeal and potentially vulnerable to infection.
These are now very precious lives in Thailand. A massive effort has been made to get them out alive. The Thai authorities are taking no chances.
Perhaps they also wanted to avoid the excitement of seeing their parents again. Thais are generally less physical than westerners. Hugging is unusual.
And the parents are from poor, marginal communities, used to being told what to do by officials, and probably grateful for the lengths the government went to in rescuing them. They would not protest.
They were allowed to see them through windows, and are gradually being allowed in, wearing gloves and facemasks, to stand in the same room.
Will coach Ek face any disciplinary proceedings?
At this stage that seems unlikely. The parents say they have forgiven him, and they are grateful for the efforts he is reported to have made to keep their spirits up in the caves, in particular through meditation, which he learned during 12 years as a monk.
- Meet the Thai boys who were trapped in a cave
- How did the boys survive underground?
Coach Nop said Ek may be asked to go back to being a monk for three months, something Thais typically do as a kind of penance, or to replenish or cleanse themselves spiritually.
Such a move would make a lot of sense to Thais, and he would likely be allowed to resume life as normal after that.
Also Thailand typically does not have a ‘blame culture’, where a culprit must be found for any misadventure. There is a more fatalistic acceptance of things going wrong, less public clamour for accountability.
How did they survive so long with so little food, and lose so little weight?
The boys were in the caves nine days before they were found. They may have had a little food from what they bought to celebrate Night’s birthday. They are passionate football players, very fit, and with the training they have had a tight-knit team.
This would have helped them ration their food carefully and support each other, perhaps with songs.
Coach Ek taught them to meditate, say Thai navy divers, and gave them more food than he ate. He also told them to drink water dripping from the rocks, rather than polluted ground water.
During their last six to eight days they were being fed, initially high-protein gels, but later more normal food, which might have allowed them to start putting on a little weight before coming out.
Were they in the dark the whole time?
Most of the time. They went in with cheap torches, which would not have lasted long. It is likely they were in the dark for most of the first nine days of their ordeal.
Once they were found a Thai army doctor and at least three divers stayed with them, equipped with good torches. Even so they were mostly in the dark, and had to wear sunglasses when they were first brought out.
Were they sedated in any way?
The Thai authorities are being very coy about this.
Prime Minister Prayuth Chan-ocha said they had been lightly sedated. But the BBC has spoken to a number of people involved in the operation who say the boys were heavily sedated, and only semi-conscious.
The logic for this would be the fear their rescuers had that they would panic when wearing diving equipment for the first time in darkness and swirling cave water, endangering the lives of all of them.
The two British cave divers who led the rescue effort, John Volanthen and Richard Stanton, are believed to have asked for Australian Richard Harris, a cave diver and anaesthetician, to assist in preparing the boys.
- How the Thai boys were rescued
- The heroes who saved the Wild Boars
How they carried semi-conscious or very drowsy boys through the technically challenging early stages of the journey out, with a lot of diving in narrow passages, we do not know.
At times they may have been strapped to a diver’s body. Later they were strapped on to a stretcher and suspended from a rope pulley system attached to the cave roof.
The entire operation was complex, innovative and very bold. Nothing like it has been attempted before. Some of those involved described the tasks undertaken by the core divers, who carried the boys out, as superhuman.
Who has paid for this operation?
The Thai government, for most of it.
It is likely that the contribution by other countries, like the 30 US air force personnel who went to help, would have been funded by their own governments as a gesture of good will.
Many Thai businesses supported with transport and food. Thai Airways and Bangkok Airways offered free flights to some of the foreign divers coming in.
Could the Thais have done this on their own?
No, and few countries could. Cave diving is a very specialised skill, and expert cave rescuers are even rarer.
Thailand was fortunate that an experienced caver Vern Unsworth has explored the Tham Luang cave complex extensively, and lives nearby.
He was on the scene the day after the boys disappeared, and suggested that the Thai government needed to invite expert divers from other countries to help.
- The Brits behind the Thai cave boys search
- As it happened – Thai cave rescue
The Thai navy divers who went down initially struggled, because both their experience and equipment were for sea diving, which is very different. They were driven out of the caves by rapidly rising flood water, and finding the boys seemed a hopeless cause.
Once foreign divers arrived, from many different countries, the Thai authorities allowed them to devise first the search, and then the enormously complex rescue. It was a huge logistical operation involving hundreds of people, building guide rope and pulley systems, putting in power and communication cables.
It is to Thailand’s credit that it was organised so well, and there was no attempt to diminish the foreign contribution.
Do you have a question about the Thai cave rescue? Please send your questions to.
You can also contact us in the following ways:
- Tweet: @BBC_HaveYourSay
- WhatsApp: +44 7555 173285
- Text an SMS or MMS to 61124 (UK)