After more than two weeks trapped inside a cave complex in northern Thailand, all 12 boys and their soccer coach have finally been rescued.

The last four members of the youth soccer team and their coach were pulled out of the cave on Tuesday afternoon, the third day of a huge international operation to save them.

Nineteen divers assisted in the operation on Tuesday.

The boys were exploring the caves on June 23 with their coach when they were trapped inside by heavy seasonal rains. After they were found on July 2, officials cautioned it could take some time to get them out, but with heavy rain forecast to hit the region authorities decided to act.