The foreign minister of Libya's internationally recognized government says the North African nation is at "crossroads" as it faces mounting political and security crises, including the expansion of extremist Islamic State affiliates along its coast.

Mohammed al-Dairi told journalists in Cairo on Monday that parties opposing peace talks hosted by the United Nations are automatically allying themselves with the Islamic State group.

The U.N. talks have reached a critical point as negotiators meet in Algeria to discuss a final draft of a power-sharing agreement and ending the country's unrest.

Libya is divided between rival governments and hundreds of militias in the aftermath of its 2011 civil war that ousted dictator Moammar Gadhafi. Meanwhile, groups allied to the Islamic State group grow in strength.