The fighting has displaced countless families, forcing many to build new homes without permits in a jumble of unplanned neighbourhoods that often lack infrastructure, from proper roads to schools or sewerage systems.
As the oil-rich but poverty-stricken North African country tries to stabilise and rebuild, authorities are scrambling to address the legacy of years without urban planning.
A year-long battle between eastern-based general Khalifa Haftar and Tripoli-based armed groups caused massive damage to the outskirts of the capital, displacing thousands and creating a housing crisis.