Imp raises a good point. Piracy flourished (ie the Caribbean, the Spanish Main, Captain Morgan, as Tann pointed out) because it often had the backing of various governments. Remove that backing, and add in active and forceful anti-piracy campaigns, and we saw piracy crumble.