Spanish relations with the Barbary Coast

In Spanish history, the region known as the Barbary Coast held great importance as a host territory for the Moriscos after their expulsion of the Moriscos from Spain, and for a long time the Barbary Coast became a stronghold of piracy that particularly ravaged the Spanish Mediterranean coast.