Morocco is not a difficult country to travel solo, but there are some tips and tricks that can make your experience more enjoyable and prevent you from wasting time and money.
Speak the Language
Linguistic richness characterizes this North African nation. The majority of Moroccans speak Moroccan Arabic (Darija) or one of three Berber dialects as a native language. French is widely used, and you can still get by with Spanish or Portuguese in some coastal regions. Traveling alone is an excellent opportunity to meet and converse with locals. Even if you can only manage basic greetings, an attempt at speaking Darija or Berber will often gain you immediate respect and can lead to better deals on lodging, tourism packages and souvenirs.
Lonely Planet has phrasebooks for both French and Moroccan Arabic. Another travel-geared French phrasebook on the market is by writer Rick Steves.