In the 19th century, European powers were present in the Mediterranean. Because of different historical events. Both Britain and France had a considerable amount of navies in the Mediterranean. Their fleets managed to make sure that piracy would no longer be a local threat and only cause problems in the far east.