The head of Libya's Government of National Accord (GNA), Fayez al-Sarraj, said he plans to step down within six weeks as part of efforts to broker a peace agreement.
Libya has endured almost a decade of violent chaos since the 2011 NATO-backed uprising that toppled and killed veteran dictator Muammar Gaddafi.
Sarraj's Tripoli-based GNA has battled against a rival administration in eastern Libya led by strongman Khalifa Haftar, whose offensive against the capital was repelled earlier this year.
For all the latest headlines follow our Google News channel online or via the app.
Representatives from the two sides have since met for peace talks in Morocco after last month announcing a surprise ceasefire and pledging national elections.
Sarraj said during a brief televised address late Wednesday that he was willing to leave his post in favor of a new executive determined by talks.
"I announce to all my sincere wish to cede my functions to the next administration before the end of October at the latest," he said.
He welcomed the "preliminary and promising recommendations" agreed to during the Morocco dialogue.
The talks had outlined the process for determining a new Presidential Council and the appointment of a new head of government who would take office "peacefully", Sarraj added.
The Morocco summit, dubbed the "Libyan Dialogue", brought together five members of the GNA and five from the rival parliament headquartered in the eastern city of Tobruk.
Morocco previously hosted talks in 2015 that led to the creation of the GNA.
The UN's mission in Libya (UNSMIL) paid tribute on Thursday to Sarraj's "courageous decision" to step down.
Sarraj's "announcement comes at a decisive turning point in Libya's longstanding crisis when it is clear that the situation is no longer sustainable," it said in a statement.
"The onus is now on concerned Libyan parties to fully shoulder their responsibilities... to take historic decisions, and to accept mutual concessions for the sake of their country."
Libya’s LNA: Turkey sending mercenaries of various nationalities, not only Syrians
Egypt will not stand hands tied facing Turkey’s ambitions in Syria, Iraq, Libya: FM
Libya’s GNA should realize its size, who it’s talking to: Egypt official in report