Global powers have backed the formation of a national unity government in Libya, pledging economic and security support to help stabilise the chaotic North African country where Islamic State militants have a foothold.
US Secretary of State John Kerry and Italian counterpart Paolo Gentiloni, joined by UN envoy Martin Kobler, were optimistic on Sunday that the majority of the representatives of Libya's two rival governments would sign a unity deal on December 16.
Representatives from 17 countries including Egypt, Germany, Russia, Turkey, and China signed a joint statement calling for an immediate ceasefire and promising to cut off contacts with factions that do not sign the deal.
Fifteen Libyans from different groups also attended the meeting. Past deadlines have slipped amid internal disagreements in the sprawling, oil-producing country rife with armed groups.
"We stand ready to support the implementation of the political agreement and underline our firm commitment to providing the Government of National Accord with full political backing and technical, economic, security and counter-terrorism assistance, as requested," the statement said.
Both Kerry and Gentiloni, who co-chaired the meeting, appeared confident a deal was around the corner, and stressed that a unity government was needed also to fight the growing threat from Islamic State militants.
"The message of today's meeting is clear," Gentiloni said. "What matters is the stabilisation of Libya because this too can contribute to the fight against terrorism."
Libya has sunk deeper and deeper into chaos since a Western-backed rebellion toppled Muammar Gaddafi four years ago.
Former colonial power Italy has sought to focus international attention on the OPEC country's drift towards anarchy, particularly since last month's deadly Islamic State attacks in Paris.
With around 3000 fighters, Islamic State has solidified its foothold in Libya by taking over the central city of Sirte.
The UN brokered agreement would allow a new Libyan government to ask for international military assistance to fight Islamic State's growing presence.
The recognised government and elected House of Representatives have operated only in the east of Libya since last year, when the capital Tripoli was seized by a faction that set up its own government. Each side is backed by competing alliances of former anti-Gaddafi rebels.
The UN proposal calls for a presidential council with the House of Representatives as the legislature alongside a second consultative chamber, the State Council.
The presidential council could form a government in 30 days once a deal is signed and that would be ratified by parliament and bolstered by a UN Security Council resolution.
But with Libya already fragmented, questions linger about how opponents and armed factions which might reject the deal will react to what they will see as an unrepresentative government, and how they can be brought on board after.