Both sides in Libya's conflict agreed to a ceasefire from Sunday to end nine months of fighting, following weeks of international diplomacy and calls for a truce by power-brokers Russia and Turkey. The oil-rich North African country has been wracked by bloody turmoil since a 2011 NATO-backed uprising killed long-time dictator Moamer Kadhafi, with multiple foreign powers now involved.
The UN-recognised Government of National Accord (GNA) in Tripoli had been under attack since last April from forces loyal to eastern-based strongman Khalifa Haftar, which on January 6 captured the strategic coastal city of Sirte.
Late on Saturday, Haftar's forces announced a ceasefire starting at midnight (Sunday 00:00 local time, Saturday 2200 GMT) in line with a joint call by Turkish President Recep Tayyip Erdogan and his Russian counterpart Vladimir Putin.
GNA head Fayez al-Sarraj, who met Erdogan in Istanbul on Sunday, confirmed the ceasefire had taken effect.
The UN mission in Libya welcomed the announcements and called on all parties "to respect the ceasefire" and support efforts to launch an inter-Libyan dialogue.
Likewise, the Arab League urged Libya's factions to "commit to stop the fighting, work on alleviating all forms of escalations and engage in good faith aimed at reaching permanent arrangements for a ceasefire".
Neighbouring Algeria, at the centre of a flurry of diplomatic activity on Libya, called for a "swift return to the process of national dialogue to reach a political solution".
Putin held talks on the telephone Sunday with Italian Prime Minister Giuseppe Conte and French President Emmanuel Macron, who both voiced support for a planned international conference on Libya to be held in Berlin, the Kremlin said. Since the start of the offensive against Tripoli, more than 280 civilians and about 2,000 fighters have been killed and 146,000 Libyans displaced, according to the United Nations.
Sarraj stressed the GNA's "legitimate right ... to respond to any attack or aggression" that may come from the other side, while Haftar's forces warned of a "severe" response to any violation by the "opposing camp".
Artillery fire could be heard shortly after midnight in the capital, before quiet settled over the southern Tripoli suburb where pro-GNA forces have been resisting Haftar's offensive.