All 12 members of a soccer team and their coach have been rescued from a cave in Thailand where they have been trapped for nearly two weeks, Thai Navy SEALs have confirmed.

The soccer team of 12 boys, ages 11 to 16, and their coach, 25, went missing late last month while on an excursion. They were found in the Tham Luang cave complex about 10 days into the search.

President Trump Donald John TrumpBiden on Trump's refusal to commit to peaceful transfer of power: 'What country are we in?' Romney: 'Unthinkable and unacceptable' to not commit to peaceful transition of power Two Louisville police officers shot amid Breonna Taylor grand jury protests MORE congratulated the Thai Navy SEALs on the "beautiful moment" of rescue.

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. Such a beautiful moment - all freed, great job! — Donald J. Trump (@realDonaldTrump) July 10, 2018

ADVERTISEMENT

It took three missions, and elite military and divers from several countries, to remove all the boys and their coach. The first rescue took place on Sunday. Each boy needed to be brought out individually by a team of two divers.

One ex-Thai Navy SEAL died while delivering oxygen tanks to prepare for the rescue.

Those who were rescued have been taken to a nearby hospital for treatment. According to a report by CBS News, the boys are expected to spend a week in the hospital.

Updated at 9:28 a.m.