Essaouira was known in the time of 11th-century geographer al-Bakri and, as he reported, was called Sidi Megdoul. In the 16th-century, a corruption of this name became known to the Portuguese as Mogador or Mogadore. The Berber and Arabic names mean the wall, a reference to the fortress walls that originally enclosed the city. photographs by Mathias Thomsen