Safi (Berber: Asfi, ⴰⵙⴼⵉ; , Portuguese: "Safim") is a city in western Morocco on the Atlantic Ocean. The capital of Safi Province, it has a population of 282,227 (2004 census). Safi is the main fishing port for the country's sardine industry, and also exports phosphates, textiles and ceramics.