Western Australia, again, is not favoured with many inlets, Exmouth Gulf and Shark's Bay being the only bays of any size.
When Lord Exmouth was about to bombard the city in 1816, the British consul was thrown into prison and loaded with chains.
Repeated attempts were made by various European nations to subdue the pirates, and in 1816 the city was bombarded by a British squadron under Lord Exmouth, assisted by Dutch men-of-war, and the corsair fleet burned.
Nevertheless the naval demonstrations made by Lord Exmouth in 1816, and by a combined English and French squadron in 1819, remained equally fruitless.
When Lord Exmouth sailed to coerce Algiers in 1816, he expressed doubts in a private letter whether the suppression of piracy would be acceptable to the trading community.