A group of schoolchildren rescued from the Brecon Beacons during a Duke of Edinburgh exercise were never missing, their headmaster has said.
Police and mountain rescue teams said a major search operation was launched after 26 teenagers disappeared in low cloud and torrential rain.
But Jonathan Gillespie, headmaster at St Albans School, in Hertfordshire, said their location was known but they needed help after two of the group were taken ill.
"At no stage have any of them been unaccounted for or missing," he said.
Three mountain rescue teams, police and ambulance crews were sent to the area in south Wales at around 1pm on Wednesday after the alarm was raised when a group was said to have got lost in clouds.
Emergency services said the teenagers' bid to find their way back on their own was hampered by torrential rain, strong wind and virtually no mobile phone reception in the remote 10 hectare area of Llyn Y Fan Fach, near Abercraf.
Twelve rescuers from Western Beacons, Central Beacons and Brecon mountain rescue teams took part in the search as well as police, and all pupils were found safe and well.
Really pleased that all 26 were found safe following the search and rescue op in the Brecon Beacons this afternoon https://t.co/0SRmsn9LAZ
-- Dyfed Powys Police (@DyfedPowys) June 29, 2016
Gillespie said he was "grateful" to the emergency services for their help. He said 47 Year 11 pupils were on the second day of a three-day silver Duke of Edinburgh award expedition when two pupils began to feel unwell.
They were part of a small group of seven pupils who correctly followed their training procedures and called for help, he added.
The school was contacted and a member of staff was able to give police the six digit grid reference for the pupils' location.
He said two members of staff reached the group within 90 minutes and the mountain rescue team led them off the hill.
"They were fit enough to walk off the hill," he said, adding that the pupils were given a precautionary medical check but were fine.
Gillespie added: "I'm very proud of my staff and pupils and how they responded to it and grateful to the emergency services."
He said several of the groups were still on track to complete the expedition and all pupils were expected to return to the school on Thursday.
-- Western Beacons MRT (@Western_Beacons) June 29, 2016
Andrew Evans, of Western Beacons Mountain Search and Rescue team, said this type of incident was not uncommon with groups doing a Duke of Edinburgh award. "We located them and brought them all safely back," he added.
"There were 26 of them in total and they are from the St Albans area. They have been taken to the nearby town of Ystradgynlais where they were staying.
"They've all been checked out by medics as precaution and we've been assured that they are all safe and okay."