system
Given the following post, respond as if you're commenting on Reddit:
human
[Pirate fiction] In some works where pirates have a stronghold or city that serves as their "Capital", why do naval superpowers in said works not send their navy to destroy it?

Like there's places like "Bloodeye cove" or "Buccaneer bay" and yet the naval powers in these settings never pull off an Algiers and bombard the place into oblivion. The pirates can't hide their hideouts and lairs forever.

I know that this is a comedic example but in "Pirates an adventure with scientists" where iit's stated that the british navy controls the seven seas and even show a chart as such yet they haven't been able to wipe out that *single* pirate town that they haven't conquered or destroyed. They victorian navy should have the power to obliterate a pirate town like what hapened to Algiers in 1816.

No matter how adventurous and romantic pirate may be, they're all criminals and it's an inevitability that their swashbuckling and yo ho ho-ing will come to an end when the long arm of the law reaches them. That was the same for real life pirates.
gpt
In most works of fiction, a powerful navy *does* eventually come in and wipe out the Pirate Town, and there's nothing the pirates can really do to prevent it once sufficient force is brought to bear against them.  In the *Pirates of the Carribbean* franchise for example, the East India Trading company is shown to be more than capable of overwhelming Sao Feng's base in Singapore at the start of the third movie.  The only options the Pirates ever really have are fleeing, or magic.

The main issue is that bringing enough force to bear against a pirate town is not a trivial matter, even for an imperial navy.  A single ship wouldn't be able to intercept multiple fleeing ships, and might even get destroyed if the pirates decide to fight.  A fleet will work, but if you're Imperial power engaged in active warfare against other powers (like the four great powers were during the golden age of piracy), you might go years or even decades before the pirate stronghold becomes enough of a bother to be worth wiping out.

Historically, this is exactly what happened.  Pirate strongholds *did* exist for years and years, and they were eventually destroyed once a real power got around to bothering with it.