The soccer teammates had become trapped in the cave June 23 and were finally extracted by experienced divers over three days. They were trapped in a cave in northern Thailand for more than a fortnight.
Just after 10 pm on Tuesday, officials announced the last of the group were rescued and in good health. "All the thirteen Wild Boars are now out of the cave", the Seals said, referring to the name of the boys' football team. And the confidence of the diving team, and expertise specific to the cave, grew after its first successful mission Sunday.
The stories of sacrifice are many - from people giving up their time and holidays, to the former Thai navy diver, Saman Gunan, who paid the ultimate price when he lost consciousness after delivering air tanks to the cave complex and later died.
Experts warned it was extremely risky to dive the youngsters out of the cave.
The final day of the operation began just after 10 a.m. on Tuesday as the first eight boys, freed in operations on Sunday and Monday, recuperated at a hospital in nearest Chiang Rai city.
Musk floated a plan on Twitter on Friday that could help rescue the boys and said engineers from his companies would travel to Thailand on Saturday. "Thinking about how they've been kept in a small cave for two weeks, they haven't seen their mums", Ivan Karadzic, who runs a diving business in Thailand and has been involved in the rescue mission, told the BBC.
Tests on the first two groups rescued found no infection with any unsafe disease, the health inspector-general said.
"Amazing news that all of the Thai kids are out of the cave safely!"
A spokesperson from the Thai public health authority said that they were in "high spirits" and also claimed that as they are football players, they have high immune systems. One of them had a slight lung infection.
"We know that we can help, and they can be safe", she said in English. The Chaing Rai regional governor said he is unsure if they will be able to rescue the five remaining people in the cave in one mission.
They're all likely to stay the hospital for seven days due to their weakened immune systems, Chokedamrongsook said.
US President Trump said their rescue was "a handsome moment".
It was a "miracle" they had survived and an even greater one that the rescue team, including global caving experts, were able to hatch a plan to get them out alive.
"On behalf of the United States, congratulations to the Thai Navy SEALs and all on the successful rescue of the 12 boys and their coach from the treacherous cave in Thailand", he tweeted. "Such a handsome moment - all freed, great job!"
The drama in Thailand has even resonated as far as Russian Federation, where soccer's World Cup is reaching its final stages. Each of the nine chambers had a doctor waiting, and the boys were evaluated at each chamber.