Twelve boys and their soccer coach were rescued from a flooded cave in northern Thailand, ending an 18-day ordeal.
The team became trapped on June 23. The boys, ages 11 to 16, were exploring the Tham Luang Nang Non cave when heavy seasonal rains flooded the entrance and forced them to go deeper inside to find high ground.
Divers found them on July 2 and were able to bring them food and medical care until rescues could be made. The last rescues were made on July 10 after a tense three-day operation.

Members of the soccer team greet well-wishers as they arrive for the news conference on July 18.
Linh Pham/Getty Images

The team poses with a sketched portrait of Saman Kunan, a former Thai Navy SEAL who died on July 6 while returning from an operation to deliver oxygen tanks to the cave. He ran out of air while underwater, an official said.
Thailand's Ministry of Health and the Chiang Rai Prachanukroh Hospital via AP

Thai Navy SEALs pose for a photo after the rescue effort was finished on July 10. One of them was a doctor who stayed with the team for a week after the group was found alive on July 2.
Thai Navy Seal Handout

Rescuers carry one of the boys out of the cave.
Thai Navy Seals

Divers wave through floodwaters in the cave. Each rescue took multiple hours.
Thai Navy Seals

Chiang Rai Governor Narongsak Osotthanakorn speaks during a news conference held after the rescue was finished on July 10.
YE AUNG THU/AFP/Getty Images

A helicopter transports rescued boys to the hospital on July 10.
Lauren DeCicca/Getty Images

People watch and cheer as a helicopter flies toward an airstrip to transport one of the rescued boys to a hospital. Four boys were rescued on July 8, another four were rescued on July 9, and the rest were rescued on July 10.
Lauren DeCicca/Getty Images

Rescue workers leave after all members of the team had been saved.
Rungroj Yongrit/EPA/EFE

This photo tweeted by tech entrepreneur Elon Musk shows rescue efforts during the three-day mission. Musk tweeted early July 10 that he had visited the cave and left a mini-submarine there for future use.
AP

Members of the Royal Thai Navy are pictured with the team inside the cave.
Navy Seals/UPI/Newscom

The boys received medical attention after being found alive on July 2.
Royal Thai Navy Facebook Page via AP

An ambulance believed to be carrying one of the rescued boys heads to the hospital on July 10.
Vincent Thian/AP

Rescuers walk toward the entrance of the cave as rescue operations resumed on July 10.
Sakchai Lalit/AP

Hospital staff and a police officer are seen during a news conference that was held on July 10. The eight boys that had been rescued on July 8 and 9 were being treated in an isolation ward in a Chiang Rai hospital.
Rungroj Yongrit/EPA/EFE

Thai police and military officers use umbrellas to shield a rescued boy before he was transported to a hospital on July 9.
Lillian Suwanrumpha/AFP/Getty Images

An ambulance exits the cave area on July 9.
YE AUNG THU/AFP/Getty Images

Emergency responders surround a helicopter on July 8.
RUNGROJ YONGRIT/EPA-EFE/REX/Shutterstock

Rescue teams arrange a water-pumping system at the cave's entrance on July 7.
Royal Thai Navy/Handout/AP

Ambulances wait outside a hospital where the rescued boys were treated.
PONGMANAT TASIRI/EPA-EFE/REX/Shutterstock

Thai military personnel walk into a cave during rescue operations.
ROYAL THAI NAVY/HANDOUT/EPA-EFE

Military personnel work inside a cave.
ROYAL THAI NAVY /HANDOUT/EPA-EFE

An ambulance leaves the scene of the rescue effort on July 8.
Linh Pham/Getty Images

This undated photo, released via the Thailand Navy SEAL Facebook page, shows rescuers with their hands locked. The caption said, "We Thai and the international teams join forces to bring the young Wild Boars home." The Wild Boars is the name of the soccer team the boys play on.
Royal Thai Navy/Handout/AP

Family members pray in front of a Buddhist statue near the cave on July 8.
Sakchai Lalit/AP

Emergency workers carry oxygen tanks as rescue operations begin.
Royal Thai Navy/Handout/CNN

Thai soldiers work to connect pipes that help water from entering a cave.
Sakchai Lalit/AP

Thai forest rangers examine a map as they review their rescue options on July 8.
RUNGROJ YONGRIT/EPA-EFE

This image, taken from video on July 2, shows the team trapped inside the cave. That was the day divers found them alive.
Xinhua/Sipa

Divers were able to bring food, blankets and other supplies to the boys while experts determined the best way to get them out safely. The team was found around two kilometers (1.24 miles) into the cave and somewhere between 800 meters to one kilometer below the surface, according to a British Cave Rescue Council briefing note.
Royal Thai Navy/EPA

The team was found alive by British divers. The search brought rescue teams from all over the world.
Royal Thai Navy

A Thai military medic provides first aid to one of the boys.
Royal Thai Navy

The body of Saman Kunan, a former Thai Navy SEAL, is carried during a repatriation and religious rites ceremony on July 6. Kunan died Friday as he returned from an operation to deliver oxygen tanks to the cave. He ran out of air while underwater, an official said.
AP

Thai police take a break for breakfast as rescue operations continue on July 4.
Ye Aung Thu/AFP/Getty Images

Water is pumped out of the cave on July 3.
Linh Pham/Getty Images

Workers fix the road leading to the cave on July 3.
Lillian Suwanrumpha/AFP/Getty Images

Divers prepare a light to be used for the underwater search on July 2.
Linh Pham/Getty Images

Rescue workers wait at the entrance to the cave on July 2.
Linh Pham/Getty Images

Some of the team's family members celebrate after receiving news that the team was alive.
Lillian Suwanrumpha/AFP/Getty Images

Technicians lift water pumps to the drilling site on July 1.
Lillian Suwanrumpha/AFP/Getty Images

Soldiers and rescuers work outside the cave complex on July 1.
Soe Zeya Tun/Reuters/Newscom

Monks attend a Buddhist prayer for the team on July 1.
Lillian Suwanrumpha/AFP/Getty Images

Scuba tanks are delivered to the search site on July 1.
Linh Pham/Getty Images

Rescue workers carry water-pumping equipment into the cave on July 1.
Linh Pham/Getty Images

A Thai Air Force worker drops near a possible cave opening on June 30.
Lillian Suwanrumpha/AFP/Getty Images

British cave diver Robert Charles Harper explores an opening on June 29.
Krit Phromsakla Na Sakolnakorn/AFP/Getty Images

Relatives of the trapped team members pray on June 27.
Sakchai Lalit/AP

Family members waited more than a week for news of their loved ones.
Sakchai Lalit/AP

Thai soldiers bring hoses and additional water pumps as the search for the team continued on June 27.
Sakchai Lalit/AP

Volunteer paramedics wait near the cave entrance on June 27.
Lillian Suwanrumpha/AFP/Getty Images

A rescuer looks for a cave entrance on June 27.
Thailand Department of National Parks and Wildlife/AP

Rescuers search the cave on June 26.
Stringer/Reuters/Newscom

Thai soldiers relay cable at the search site on June 26.
Lillian Suwanrumpha/AFP/Getty Images