Seventeen days after they were trapped underground, all 12 boys of the Wild Boars football team and their coach have been rescued.
The last of the group were pulled from the flooded cave in northern Thailand by Navy SEAL divers late on Tuesday night (NZ time).
The team became stuck in the cave in Chiang Rai on June 23 when heavy rain caused flooding and cut off their route out.
British divers discovered them nine days later, beginning a rapid, high-stakes rescue mission before the weather deteriorated further.
The boys began to be pulled out on Sunday night, with four boys being rescued on the first day of the mission and a further four the following night.
Thai Navy SEALs completed the rescue operation by pulling out the final four boys and their coach late last night.
In a post on their Facebook page, the SEALs said "We are not sure if this is a miracle, a science, or what. All the thirteen Wild Boars are now out of the cave."
The boys, aged 11-17 are now recovering in hospital.