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.
READ | 'Please, please, please... I just need to go home' - SA man held hostage in Libya
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.
Conflict
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.
GET THE NEWS at your fingertips and download the News24 app for Android here now. Get it for your iPhone here.
KEEP UPDATED on the latest news by subscribing to our FREE newsletter.
- FOLLOW News24 on Twitter