Tripoli is the capital of Libya. It is located on the Mediterranean, in the northwest of the North African country. It was founded in the 7th century BC.