Emperors, Kings, and other rulers had the prerogative of granting the right to hold markets and fairs. Markets were regular affairs held on a specific day of the week every week; fairs were intended to be much larger and would be held over several days or even weeks once a year. Both were intended to strengthen local business and provide additional tax income.
The Coast of Barbary extends from the Straits of Gibraltar to Tripoli. Barbary is derived from Barbarians, but in fact it shouldn't be applied to its inhabitants. The term describes the truly barbarian pirates operating from there who were for a greater part Europeans. 400 years ago, cruising in the Mediterranean Sea was not the ideal holiday destination.