Tripoli - Libya's coastguard in two separate operations on Monday rescued at least 278 migrants as they tried to reach Europe, naval officials said.
In one operation, 150 migrants, mostly Africans, ran into trouble when their inflatable boat broke down and began sinking off the coast of Sabrata, 70km west of Tripoli, Navy spokesperson Ayoub Qassem said.
Those aboard included two women and four children, he said.
A rescue mission was launched after a Tripoli coastguard patrol was informed of the boat's plight, patrol commander Colonel Abu Ajela told AFP.
A witness said people traffickers had taken the migrants out to sea and left them there after removing the engine on the inflatable boat and replacing it with another that quickly broke down.
The migrants were brought ashore to a naval base in Tripoli where authorities gave them food, water and medical assistance before handing them over to a detention centre.
Also on Monday, a coastguard patrol from Zawiya port between Sabrata and Tripoli rescued 128 migrants including 14 women, Qassem told AFP.
He said they were rescued by two coastguard vessels including one that had been repaired in Italy and handed over to Libya in mid-May.
"This was its first outing at sea on a rescue mission," he said.
Human traffickers have exploited years of chaos in Libya since the 2011 uprising that toppled and killed dictator Moammar Gaddafi to boost their lucrative but deadly trade.
Tens of thousands of migrants have resorted to paying people smugglers to help them cross the Mediterranean Sea from Libya to what they hope will be a better life in Europe.
Since January, more than 100,000 migrants have made the perilous voyage, with around 85,000 arriving in Italy from Libya, according to the International Organization for Migration.
The IOM says this year some 2,360 people have drowned in the attempt.