At least 47 people were killed on Thursday when one of Libya's worst truck bombs in years exploded at a police training center in the northwestern town of Zliten.
No group immediately claimed the attack, but the bombing was one of the deadliest since Islamist militants started expanding their presence in the chaos that followed the fall of Muammar Qaddafi in 2011.
Mayor Miftah Hamadi said the bomb detonated as around 400 recruits were gathering at the police center in Zliten, a coastal town between the capital Tripoli and the port of Misrata. The center was a military base during Qaddafi's rule.
"It was horrific, the explosion was so loud it was heard from miles away," Hamadi told Reuters by telephone, his voice choked with emotion. "All the victims were young, and all about to start their lives."
Medical sources had initially said 65 people had been killed, including some civilians. But Fozi Awnais, head of the crisis committee for the health ministry in Tripoli, said later that 47 people had died and 118 more were wounded.
The reported bombing follows three days of Islamic State (IS) attacks this week on Libya's biggest oil terminals, which killed at least nine guards and injured more than 40.
Libya is split between political factions and armed groups competing for power and for the country's oil wealth, four years after the revolt that toppled Qaddafi. Oil output has dwindled to less than one quarter of a 2011 high of 1.6 million barrels per day.
IS has used the security vacuum to expand its presence, though it has not taken control of oil installations in the country.
The oil terminals are critical to IS's goal of taking over Libya, experts told VICE News. If the militant groups gains control of them, it will give them revenue with which to consolidate power, and will also destabilize UN-brokered talks aimed at establishing a national unity government.