Safi or 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. Etymology The city's name as it is locally pronounced is "Asfi", which was Latinized as "Safi" and "Safim" under Portuguese rule. "Asfi" means flood or river estuary in Berber and comes from the Berber verbal root "ffey/sfi/sfey" which means to flood, to spill or to pour. 11th-century geographer Al-Idrisi gave an apparently false explanation to the origin the name "Aasafi" as he linked it to the Arabic word "Asaf" (regret); Asafi (my regret). He based this claim on a strange story about some sailors from al-Andalus who sailed to discover the other end of the Atlantic Ocean but got lost and landed on some island where the natives captured them and sent them back on their ships blindfolded. The ships eventually ended on the shores of "Safi" and locals helped the lost sailors and told them that they were two months away from their native land al-Andalus. Upon hearing this one of the sailors responded by saying: "Wa asafi" (Oh my regret). Al-Idrisi wrote that from that time the city carried the name "Aasafi". This story is thought to be a legend and unlikely explanation of the origin of the name. Climate Safi has a hot-summer Mediterranean climate (Köppen climate classification Csa). History Safi, under the name Safim (Zaffim or Asfi), is one of the oldest cities in Morocco. According to historian Mohammed al-Kanuni, Safi must be identified with the ancient Thymiaterium or Carcunticus and was founded by the Carthaginian Hanno during his Periplus as related by Pliny the Elder. Under the Almohads it functioned as an important port to the capital Marrakesh. The city was under Portuguese rule from 1488 to 1541; it is believed that they abandoned it to the Saadians (who were at war with them), since the city proved difficult to defend from land attacks. The