Tripoli is the capital and largest city of Libya, located on the Mediterranean coast of North Africa. It has been an important port city for centuries. Amsterdam is in the Netherlands, Quito is the capital of Ecuador, and San Jose is the capital of Costa Rica - none are in Africa.