Many people take a day trip to Essaouira from Marrakech, but in my opinion, you need at least two full days to enjoy the city. I spent a week there and didn't want to leave!