At least 17 young girls died after a fire swept through the dormitory of a school for children of hill tribes in northern Thailand, officials said on Monday, adding that several others were either missing or injured.
The fire started late at night, meaning many of the children were asleep and unable to escape as flames engulfed the two-storey building.
"The fire broke out at 11pm on Sunday (16:00 GMT). Seventeen girls were killed and two are still missing, with five injured," Colonel Prayad Singsin of the police in Chiang Rai told the AFP news agency.
Two of the injured are in a serious condition, he said.
"The fire is out, but the cause of the blaze is still under investigation," Prayad said, adding that forensic officers were due to arrive on Monday.
A Chiang Rai provincial official confirmed the death toll, adding that the privately run school was home to girls aged between six and 13, drawn mainly from the deprived local hill tribes.
"There were 38 students inside the dormitory when the fire broke out. Some were not yet asleep so they escaped," the province's deputy governor, Arkom Sukapan, told AFP.
"But others were asleep and could not escape, resulting in the large number of casualties."
Photographs on the school's Facebook page showed firefighters struggling to douse the flames as they tore through the wooden building.
Thai media showed a fire engine spraying water on to the blaze as the upper storey of the school was consumed by the fire.
Rescue workers picked through the debris late on Sunday and into Monday morning.
Thailand is home to a patchwork of hill tribes who mainly live in the remote northern area bordering Laos and Myanmar.
Many are descendants of refugees from Myanmar or China and live in subsistence farming communities that are beyond the reach of state resources.
Hill tribe children suffer at school, as well as in health and development.
Poverty means adults are easy prey for drug gangs who pay them to smuggle narcotics - including heroin and amphetamines - across a zone known as the Golden Triangle.
Thai security forces frequently engage in deadly gun battles with hill tribe drug mules in the region. That link engenders prejudice among many Thais, and hill tribes are often portrayed negatively in the media.
Chiang Rai town and the surrounding hills are popular with foreign tourists for hiking and adventure sports.
Tourists can go on tours to the visit the isolated tribes, although the practice of posing for photographs at villages has come in for criticism for degrading their unique culture and treating the ethnic groups as exhibits in "human zoos".
Thailand has poor health and safety standards and accidents are common in the kingdom.
Source: Al Jazeera and agencies