The Embargo Act of 1807, adopted during the Napoleonic Wars, and the War of 1812 significantly curtailed Boston's harbor activity. What became an important part of the city's economy during the Napoleonic Wars and the war of 1812