Updated

Tunisia's outgoing prime minister says the greatest threat to his country, which recently completed its transition to democracy, comes from chaotic neighboring Libya.

Mehdi Jomaa — who became interim prime minister at the start of the year and guided the country through presidential and legislative elections — will soon be stepping down to the newly elected government.

He told The Associated Press Friday, on the eve of his trip to France, that terrorism remains a real threat and most of it is coming from Libya, which he described as being in a state of war among rival militias.

Since Tunisians overthrew their dictator in 2011, kicking off the region-wide Arab Spring movement, the country has been wracked by economic problems, social unrest and especially terrorist attacks.