Safi (Berber: Asfi, ⴰⵙⴼⵉ; Arabic: أسفي, Portuguese: Safim) is a city in western Morocco on the Atlantic Ocean. The capital of Safi Province, it recorded a population of 308,508 in the 2014 Moroccan census. The city was under protectorate by the Portuguese Empire from 1488 to 1541, was the center of the nation'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 one of the landing sites for Operation Torch.