Being one of Morocco's main fortified coastal towns, Essaouira boasts of gates. Gates always belonged to the defense mechanisms of the town, protecting the outer shell, as well as diving the town into smaller parts.