Dakar is the capital and largest city of Senegal, located on the Cape Verde Peninsula on the westernmost point of Africa. It is a major port city and the westernmost city on the African mainland. Dar-es-Salaam (Tanzania), Niger (country name, not a city), and Rabat (Morocco) are incorrect.