A rescue operation is now underway to extract 12 boys and their soccer coach from the Thailand cave where they've been trapped since June 23.

Chiang Rai acting Gov. Narongsak Osatanakorn said 13 foreign and five Thai divers were taking part in the rescue and two divers will accompany each boy as they are gradually extracted.

Osatanakorn said it will take at least 11 hours for the first person to be rescued.

MAE SAI, Thailand (AP) — The operation has begun to rescue 12 boys and their soccer coach who will need to dive out of the flooded Thai cave where they have been trapped for more than two weeks, with officials saying Sunday morning that "today is D-Day."

Chiang Rai acting Gov. Narongsak Osatanakorn said 13 foreign and five Thai divers were taking part in the rescue and two divers will accompany each boy as they are gradually extracted. The operation began at 10 a.m. and he said it would take at least 11 hours for the first person to be rescued.

The only way to bring them out of Tham Luang Nang Non in Chiang Rai province is by navigating dark and tight passageways filled with muddy water and strong currents, as well as oxygen-depleted air. A former Thai navy SEAL passed out making the dive Friday and died.

Experienced cave rescue experts consider an underwater escape a last resort, especially with people untrained in diving, as the boys are. The path out is considered especially complicated because of twists and turns in narrow flooded passages.

But the governor supervising the mission said earlier that mild weather and falling water levels over the last few days had created optimal conditions for an underwater evacuation that won't last if it rains again.

Before announcing that the rescue was underway, authorities ordered the throngs of media that have gathered at the cave from around the world to leave.

The boys, ages 11-16, and their 25-year-old coach became stranded when they went exploring in the cave after a practice game June 23. Monsoon flooding cut off their escape and prevented rescuers from finding them for almost 10 days.

'The battles to search, rescue and send them home'

In this undated photo released by Royal Thai Navy on Saturday, July 7, 2018, Thai rescue team members walk inside a cave where 12 boys and their soccer coach have been trapped since June 23, in Mae Sai, Chiang Rai province, northern Thailand. Royal Thai Navy via Associated Press Authorities had said that incoming monsoon rains that could send water levels in the cave rising, coupled with falling oxygen levels in the enclosed space, added to the urgency of getting those trapped out. Earlier efforts to pump out water from the cave have been set back every time there has been a heavy downpour.

Narongsak said Saturday that experts told him water from new rain could shrink the unflooded space where the boys are sheltering to just 10 square meters (108 square feet).

"I confirm that we are at war with water and time from the first day up to today," he said Saturday. "Finding the boys doesn't mean we've finished our mission. It is only a small battle we've won, but the war has not ended. The war ends when we win all three battles — the battles to search, rescue and send them home."

The boys sounded calm and reassuring in handwritten notes to their families that were made public Saturday. The notes were sent out with divers who made an 11-hour, back-and-forth journey to act as postmen.

'I promise I will care for the kids as best as possible'

This undated photo released on Saturday, July 7, 2018, shows handwritten notes by the children trapped in a cave in Mae Sai, Thailand. The message on top reads: Mark "Mom how are you doing at home? I'm doing fine. Pass this on to the teacher too. (Love Mom, Nam Hom)". Thai Navy SEAL Facebook page via Associated Press One of the boys, identified as Tun, wrote: "Mom and Dad, please don't worry, I am fine. I've told Yod to get ready to take me out for fried chicken. With love."

"Don't be worried, I miss everyone. Grandpa, Uncle, Mom, Dad and siblings, I love you all. I'm happy being here inside, the navy SEALS have taken good care. Love you all," wrote Mick.

"Night loves Dad and Mom and brother, don't worry about me. Night loves you all," wrote Night, in the Thai manner of referring to one's self in the third person.

The most touching note came from one whose name was not clear: "I'm doing fine, but the air is a little cold, but don't worry. Although, don't forget to set up my birthday party."

Another, of indistinct origin, asked their teacher not to give them a lot of homework.

In a letter of his own, the coach, Ekapol Chanthawong, apologized to the boys' parents for the ordeal.

"To the parents of all the kids, right now the kids are all fine, the crew are taking good care. I promise I will care for the kids as best as possible. I want to say thanks for all the support and I want to apologize to the parents," he wrote.

An update Saturday from the Thai navy said three navy SEALs were with the boys and their coach, one a doctor. The 13 were having health evaluations and rehabilitation, and were being taught diving skills. Food, electrolyte drinks, drinking water, medicine and oxygen canisters have been delivered to them. A major concern of the rescuers is that oxygen levels in their safe space could fall dangerously low.

Rescuers have been unable to extend a hose pumping oxygen all the way to where the boys are, but have brought them some oxygen tanks.