Meaning : A part of a city that is notorious for gambling dens and brothels and saloons and riotous night life (especially the waterfront of San Francisco after the gold rush of 1849).
Example :
We'll tolerate no Barbary Coast in this city!.
Meaning : The Mediterranean coast of northern Africa that was famous for its Moorish pirates.