The clashes broke out on Monday in suburbs south of Tripoli and continued into Wednesday evening after a truce collapsed, despite an appeal by the United Nations for calm.
The clashes came to an end on Thursday after a ceasefire agreement announced by officials from western areas, but it was unclear whether the two rival camps would continue to respect it.
Fayez al-Sarraj, the leader of the internationally recognised Government of National Accord (GNA), has tasked forces from western and central regions of Libya with ensuring the rivals adhere to the ceasefire.
The Libyan capital has been at the centre of a battle for influence between armed groups since dictator Moamer Kadhafi was toppled in 2011.
For more news your way, download The Citizen’s app for iOS and Android.
Download our app and read this and other great stories on the move. Available for Android and iOS.