While Morocco has a bit of a bad reputation for tourist harassment, it's still a very safe country to travel in as a solo female. As long as you don't mind a few frustrations here and there, it's well worth the small difficulties to experience such a beautiful place.