Start dealing with pirates like they did in the 18th century, and watch how fast it ends. It would only take a few dozen publicly hung pirates to make the point.
It's my understanding it was more about the loss of favorable basing and the reduction in Spanish shipments of treasure that caused the decline.
We've killed plenty of would-be pirates recently. Doesn't seem to have ended the problem.
It did in the early 19th century. Check out the first and second Barbary Wars. They were not permanent solutions but they had lasting effects. The real blow was the French conquest of Algeria after that.
2. One of the big problems here is there's no real counterparty to negotiate with/cow like the Algerian Dey.
That's not to say that I'm against increased anti-pirate action. I just don't think it's as straightforward as you all say.
Those crimes correlate with poverty.
You want less crimes? Provide social security to get rid of the criminals out of desperation
You can put a high wall at a border but desperate people will try to scale it. No matter how high you make it. People are willing to cross things like the Darien gap [0], they'll do a lot of things.
If you have nothing to lose, and I mean nothing, you might be willing to take the gamble.