In a move fraught with risk, the United States and other world powers have said they will supply Libya's internationally recognised government with weapons to counter Islamic State and other militant groups gaining footholds in the country.
Aiming at once to shore up the fragile government, and prevent Islamic State fighters and rival militias from further gains, the US, the four other permanent UN Security Council members and more than 15 other nations said they would approve exemptions to a United Nations arms embargo to allow military sales and aid to Libya's so-called Government of National Accord.
In a joint communique, the nations said that while the broader embargo will remain in place, they are "ready to respond to the Libyan government's requests for training and equipping" government forces.
"We will fully support these efforts while continuing to reinforce the UN arms embargo," the communique said.
With support from all five permanent members of the UN Security Council, the plan is unlikely to face significant opposition from any quarter.
The communique was issued at the end of the talks that gathered US Secretary of State John Kerry and top officials from more than 20 other nations to discuss ways to strengthen Libya's fledgling government. The aim is to give the internationally recognised administration more muscle in fighting Islamic State radicals and end its rivalry with a group to the east claiming legitimacy.
The step will boost the government's efforts to consolidate power and regain control over Libyan state institutions like the central bank and national oil company. However, it also comes with risks, not least of which is that the arms may be captured or otherwise taken by the Islamic State or other groups.
Mr Kerry called the plan "a delicate balance".
He added: "But we are, all of us here today, supportive of the fact that if you have a legitimate government and that legitimate government is fighting terrorism, that legitimate government should not be victimised by (the embargo)."
Libyan premier Fayez al-Sarraj said his government would soon submit a weapons wish-list to the Security Council for approval.
"We have a major challenge ahead of us," in fighting extremists, he said. "We urge the international community to assist us."
Before the meeting, German foreign minister Frank-Walter Steinmeier outlined the high stakes at hand.
"The key question is whether Libya remains a place where terrorism, criminal human smuggling and instability continue to expand, or if we are able, together with the government of national unity to recover stability," he told reporters.
The challenges are daunting.
Libya descended into chaos after the toppling and death of Muammar Gaddafi five years ago and soon turned into a battleground of rival militias battling for powers.
More recently, the power vacuum has allowed Islamic State radicals to expand their presence, giving them a potential base in a country separated from Europe only by a relatively small stretch of the Mediterranean Sea.
Also worrying for Europe is the potential threat of a mass influx of refugees amassing in Libya, now that the earlier route from Turkey into Greece has been essentially shut down.
In Libya, the UN-established presidency council on Monday effectively gave the go-ahead for 18 government ministers to start work, even though they have not received backing from the parliament.
The council was created under a UN-brokered unity deal struck in December to reconcile Libya's many political divisions. It won the support of a former powerbase in the country's capital Tripoli, but failed to secure a vote of confidence by the country's internationally recognised parliament, based in Tobruk, a city in eastern Libya.
The UN deal also created the internationally recognised government, through a de facto cabinet to administer the country under Mr Serraj and the 18 ministers will answer to him.
Divisions in the Tobruk parliament between boycotters and supporters of the new government have prevented the house from reaching a quorum to endorse the council.