If you arrive without a tour guide, you will be approached dozens of times with offers to hire a guide. Some of them will be very aggressive.
It might to possible to arrange a tour of Tangier in Gibraltar. I didn't pay much attention to the travel agency windows in Gibraltar. The James Bond film "The Living Daylights" has some scenes of Tangiers.