A 3 month permit is available on arrival to citizens of the EU, USA, Australia and New Zealand and you must carry a valid passport while traveling abroad. Passengers who are not U.S. citizens must check with the representative consulate or a visa agency to determine if a visa is required. the three-month visitor's stamps can be extended by Immigration or Bureau des Etrangers in most large towns.
If your nationality is not on the following list, then you should contact a Moroccan Embassy and apply for a visa.
You do not need a tourist visa if you belong to one of the following countries: Andorra, Argentina, Australia, Bahrain, Brazil, Canada, Chile, Congo (Rep. of), Cote d'Ivoire, Denmark, European Union, Finland, Guinea, Hungary, Iceland, Indonesia, Korea (Rep. of), Kuwait, Libya, Liechtenstein, Mali, Malta, Mexico, Monaco, New Zealand, Niger, Norway, Oman, Peru, Philippines, Puerto Rico, Qatar, Romania, Russia, Saudi Arabia, Senegal, Singapore, Sweden, Switzerland, Tunisia, Turkey, United Arab Emirates, United Kingdom, United States of America, and Venezuela.
Your passport must be valid for at least six months after you enter Morocco. You will get a stamp in your passport upon entry into the country (make sure you get it) which will allow you to stay for 90 days. No entry fees are charged.