The internationally recognised Libyan government (GNA) has accepted an offer by the United Nations for a ceasefire during the Eid al-Adha religious holiday.
The Libyan government has been fighting the Libya National Army (LNA), led by renegade military commander Khalifa Haftar for months, displacing more than 100 000 people.
The LNA has not yet responded to the UN’s call for a ceasefire.
According to a statement put out by the Libyan government, the temporary halt in fighting would include ground battles as well as air attacks.
The UN mission in Libya (UNSMIL) will be responsible for monitoring any violations, the Tripoli government said.
The fighting between the government and Haftar’s troops began in April, when they attacked the capital of Tripoli in a surprise attack.
The supporters of Haftar say they are trying to free Tripoli from militias which they blame for destabilising Libya since the fall of Muammar Gaddafi in a NATO-backed uprising in 2011. Haftar had participated in the revolt against Gaddafi.
So far, the LNA has only been able to conquer some suburbs in the south of the city.
Haftar’s critics accuse him of trying to seize power through force and deepening a conflict between factions based in the east and west of the sprawling North African country.
His offensive has upended UN-led plans to stabilise Libya after years of conflict that have left the oil-rich nation divided and caused living standards to plummet.
The battle for Tripoli has killed hundreds of people, including combatants and civilians, according to the World Health Organization.
Western powers have become increasingly concerned about the conflict as it risks disrupting oil production and prompting more migrants to leave for Italy and other parts of Europe by boat.