An outbreak of piracy in 1822 prompted the United States to organize the West Indian Squadron, an anti-pirate fleet. Commanded by Commodore David Porter, the Squadron in 1823 included 17 ships and 1,100 men based in Key West. For two years the fleet attacked many of the estimated 2,000 pirates in the Indies. In 1825, after Porter was removed from command, Commodore Lewis Warrington continued the assault. Altogether 79 pirates were taken by U.S. ships.