One armed faction, the 7th brigade from Tarhouna town south of the capital, which had attacked Tripoli with other factions, accepted the ceasefire, spokesman Saad al-Hammali said,

Last week, local officials brokered a ceasefire that did not hold. Dozens of people have been killed in fighting engulfing Tripoli as rival armed groups vie for power and money in the chaos persisting in the oil producer since the toppling of Muammar Gaddafi in 2011. "Under the auspices of [UN envoy Ghassan Salame], a ceasefire agreement was reached and signed today to end all hostilities, protect civilians, safeguard public and private property and reopen Mitiga airport in Tripoli," the United Nations Support Mission in Libya (UNSMIL) mission said. The Tripoli Matiga airport - closed since Friday - would also be reopened under the deal, the United Nations said, showing pictures of the meeting hosted by U.N. Special Envoy Ghassan Salame but giving no immediate details. It was not clear how the ceasefire would be implemented as militias have ignored previous calls to lay down arms by the U.N.-backed government which is largely powerless. There is no police or army or functioning state to enforce peace in a country ruled by armed groups who defy authority and form flexible alliances. “Today does not aim to fix all the Libyan capital’s security problems; it seeks to agree on a broader framework on the way to start addressing the issues,” UNSMIL quoted U.N. Special Envoy Ghassan Salame as saying. Hundreds of African migrants escaped from a detention centre in Tripoli on Tuesday as fighting between rival groups raged nearby, an aid official said, though the Libyan government department set up to combat illegal migration denied the report. A video posted on social media on Tuesday purportedly showed hundreds of Africans, some carrying plastic bags, walking in a long line away from the detention centre. “We didn’t have a shower for three, four days.”

Libya is a major departure point for migrants crossing the Mediterranean Sea to Europe, mainly from other parts of Africa. As many as 1,900 migrants had been in the detention center but some were brought by authorities to another facility, a U.N. official said. Most migrants had been jailed after the Libyan coastguard intercepted their makeshift boats bound for Italy. Access to the web is controlled by state firms and monitored by security bodies which are effectively controlled by armed groups working with the weak GNA. Eastern Libya is controlled by a rival administration. In a further sign of chaos, some 400 prisoners also escaped on Sunday from a jail in southern Tripoli, forcing open the doors as the guards retreated. The fighting has raged mostly in the southern suburbs of the capital, forcing 1,825 families to flee to nearby towns or seek shelter in other districts of Tripoli, the ministry for displaced people's affairs said.
The United Nations reports that a ceasefire has been agreed upon by non-governmental militias fighting in Tripoli.