SABRATHA, Libya (AP) -- The first time the young mother tried to flee to Europe on a rickety boat of fellow migrants from Africa, the overcrowded vessel quickly broke down and filled with water, forcing it to return to the Libyan coast. The second time, she was arrested and placed in a mosquito-infested Libyan detention center, where she has languished for months.
She says she lives on bread and water, with only milk for her 8-month-old girl, and is beaten by guards with a hose if she complains.
"They beat us like goats," said Beauty Osaha, 23, who headed north from her native Nigeria in hopes of a better life. She said the guards at the facility in the ancient city of Sabratha search migrants' bodies, including their private parts, looking for money or smuggled phones.
Libya's chaos in the two years following the overthrow of dictator Moammar Gadhafi has turned the country into a prime springboard for tens of thousands of migrants, mainly from Africa, trying to reach Europe in rickety, crowded boats. With police and the military in disarray, human smuggling has reached the level of a mafia-style organized industry in which Libya's militias have gotten involved, according to activists and police.
The danger of the sea journey became particularly clear this month, with three deadly wrecks of migrant boats coming from Libya. At least 365 people, mostly Eritreans fleeing repression in their homeland, died on Oct. 3 when their boat from Libya sank off the Italian island of Lampedusa -- one of the worst verified migrant tragedies in the Mediterranean.
Detention by Libyan militias is the migrants' other potential ordeal. Activists say militias hold migrants in stores, schools and abandoned buildings as well as detention centers, abusing them and holding them hostage until they receive money from the migrants' families. Then the migrants are freed, only to try again.
"In these prisons, the principles of the Feb. 17 Revolution are being toppled down. The Libyan authorities must put an end to those pirates," a Libyan rights group called Beladi, or My Nation, said on its website, referring to the "revolution" that led to Gadhafi's ouster and death in 2011.
But Libya's government is weak, virtually hostage to the militias, which originated as rebel brigades fighting Gadhafi but have grown in size and power.
The government has put some militias on the Interior and Defense Ministries' payrolls in an effort to control them, but the militias still do whatever they want. Militiamen this month even briefly kidnapped Prime Minister Ali Zidan, who has frequently spoken of the need to rein in the armed groups.
An official with one militia in Tripoli connected to the Interior Ministry that runs a migrant detention center acknowledged abuses take place but blamed them on lack of training for the young guards. "They only get about two months of training, this is not enough," said Abdel-Hakim al-Balazi, spokesman for the Anti-Crime Department, a militia umbrella group that keeps security in the capital.
He said that migrants detained by his group are sent to larger detention centers in cities in Libya's southern deserts, run by other militias. Soon after, "we just see them free again on the streets," he said. He added that the southern borders are "wide open" with no government control.
After the latest migrant deaths, Zidan said his government was "determined" to stem the migrant flow. He asked the European Union for training and equipment to help patrol Libya's coast and desert borders, including access to satellite imagery.
In the first six months of this year, 8,400 migrants reached Malta and Italy by sea, almost all from Libya, nearly twice the number in the first six months of 2012, according to the U.N. refugee agency. Smaller numbers come from Tunisia, and others from Egypt, often heading to Greece. But even with the ordeals, Libya's weakened enforcement makes it an attractive path for migrants.
Cities along Libya's 1,000-mile, largely unpatrolled Mediterranean coastline have become collection points where Africans mass, scrounging up the cash for boat to take them the 200 miles to Malta or Lampedusa. Sabratha, a coastal city of about 110,000 people, is now home to some 10,000 migrants, officials here say.
The true number of migrant deaths at sea is impossible to tell, given the secrecy of the boat journeys. A half hour drive into the desert by a garbage heap outside Sabratha is a makeshift graveyard, marked only with a few stones painted white -- with no names -- where migrant bodies found washed ashore have been buried.