Safi or Asfi (Arabic: آسفي, romanized: ʾāsafī; Berber languages: ⴰⵙⴼⵉ, romanized: asfi) is a city in western Morocco on the Atlantic Ocean. It is the capital of Asfi Province. It recorded a population of 308,508 in the 2014 Moroccan census. The city was occupied by the Portuguese Empire from 1488 to 1541, was the center of Morocco's weaving industry, and became a fortaleza of the Portuguese Crown in 1508. Safi is the main fishing port for the country's sardine industry, and also exports phosphates, textiles and ceramics. During the Second World War, Safi was the site of Operation Blackstone, one of the landing sites for Operation Torch.