Essaouira has an airport, but if you're touring Morocco, the easiest way is to travel from Marrakesh by bus or shared taxi.