Essaouira is a city in the western Moroccan economic region of Marrakech-Tensift-Al Haouz, on the Atlantic coast. The city 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. Essaouira's climate is Mediterranean with oceanic influence. The gap between highs and lows is small and summers are warm while winters are mild. Annual rainfall is between 300 and 500 mm and varies from year to year.