The capital of Libya is the city of Tripoli, which is also the largest and most populous city in the country.