BEIJING — Three miners in China have been rescued after spending two and a half days trapped underground because of flooding in a coal mine that killed three of their colleagues.

Xinhua News Agency says the three were lifted to safety from the mine in Guizhou province's Weng'an county early Monday. They have been hospitalized in stable condition. Three other miners remain missing.

The mine flooded at around 10 p.m. Friday, trapping nine miners. Rescuers on Sunday had been waiting for the water level to recede before entering the shaft.

Xinhua says police have detained eight people in the ongoing investigation.

China's mines have long been the world's deadliest. Safety improvements have reduced deaths in recent years, but regulations are often ignored and accidents are still common.

Earlier on HuffPost:

Loading Slideshow...
  • In this Wednesday, April 3, 2013 photo, an Indian boy jumps into the Ganges River in Allahabad, India. Allahabad, on the confluence of the Ganges, Yamuna and the mythical Saraswathi River, is one of Hinduism's holiest sites. (AP Photo/Rajesh Kumar Singh)

  • A Saudi man smokes his last cigarette before being hanged for the murder of a compatriot just west of the capital Kuwait City, on April 1, 2013. (YASSER AL-ZAYYAT/AFP/Getty Images)

  • In this Wednesday, March 27, 2013 photo, Egyptians celebrate mass, reading the Arabic service on a computer screen, in the Coptic Orthodox Church in Samalout, in the province of Minya, Egypt. (AP Photo/Thomas Hartwell)

  • Snow-covered beach chairs stand at the lido of Strandbad Wannsee in Berlin, Germany, Good Friday March 29, 2013. Bathing season at the lido traditionally starts on Good Friday. (AP Photo/dpa, Rainer Jensen)

  • View of Barra Beach on April 04, 2013 in Rio de Janeiro, Brazil. (Buda Mendes/LatinContent/Getty Images)

  • Palestinian youths practice their parkour skills in KhanYounis, southern Gaza Strip , Sunday, March 31, 2013. Parkour is a physical discipline of movement focused on overcoming obstacles. (AP Photo/Hatem Moussa)

  • Pope Francis lies down in prayer during the Passion of Christ Mass inside St. Peter's Basilica, at the Vatican, Friday, March 29, 2013. (AP Photo/Gregorio Borgia)

  • A leopard (Panthera pardus) looks up from within a well in a residential area of Guwahati on April 4, 2013, before it was tranquilsed and taken to Guwahati Zoo. (BIJU BORO/AFP/Getty Images)

  • A woman dressed in traditional clothes dance with a tourist as part of the Holy Week celebrations in Ayacucho, Peru, Saturday, March 30, 2013. (AP Photo/Rodrigo Abd)

  • A boy is carried in a polystyrene box as thousands of city slum dwellers take an Easter Sunday dip on the polluted Manila Bay to beat the scorching heat on March 31, 2013. (NOEL CELIS/AFP/Getty Images)