Tripoli, historically known as Tripoli-of-the-West, is the capital and largest city of Libya, with a population of about 1.317 million people in 2021. …Tripoli, historically known as Tripoli-of-the-West, is the capital and largest city of Libya, with a population of about 1.317 million people in 2021. It is located in the northwest of Libya on the edge of the desert, on a point of rocky land projecting into the Mediterranean Sea and forming a bay. It includes the port of Tripoli and the country's largest commercial and manufacturing center. It is also the site of the University of Tripoli.