American merchant vessels began to fall prey to Barbary Pirates, along the so-called "Barbary Coast" of North Africa, Morocco, Tunis (in future Tunisia), Tripoli (in future Libya), and most notably from Algiers (in future Algeria), in the Mediterranean Sea during the 1790s. Congress responded with the Naval Act of 1794. The Act provided funds for the construction of six frigates to be built in six different East Coast ports; however, it included a clause stating that construction of the ships would cease if the United States agreed to peace terms with Algiers. By the time of the conclusion in 1815, of the later War of 1812 with Great Britain, the United States had fought a series of three brief, but savage naval and amphibious wars.