The United States Navy claims 13 October 1775 as the date of its official establishment, when the Second Continental Congress passed a resolution creating the Continental Navy. With the end of the American Revolutionary War, the Continental Navy was disbanded. Under President George Washington, threats to American merchant shipping by Barbary pirates, in the Mediterranean, led to the Naval Act of 1794, which created a permanent standing U.S. Navy. The original six frigates were authorized as part of the Act. Over the next 20 years, the Navy fought the French Republic Navy in the Quasi-War (1798–99), Barbary states in the First and Second Barbary Wars, and the British in the War of 1812. After the War of 1812, the U.S. Navy was at peace until the Mexican–American War in 1846, and served to combat piracy in the Mediterranean and Caribbean seas, as well fighting the slave trade off the coast of West Africa. In 1845, the Naval Academy was founded at old Fort Severn at Annapolis, Maryland by the Chesapeake Bay.