Two-hundred years ago this week, America’s worst trade war erupted into America’s worst shooting war.

On June 18, 1812, President James Madison signed a declaration of war against Great Britain. The War of 1812 was on. Despite its name, the conflict would rage for almost three years.

These days, Americans don’t think much about what happened or why. Here’s the first sentence of historian Donald R. Hickey’s definitive book: “The War of 1812 is probably our most obscure war.”

It’s obscure partly because it went so poorly. Who wants to remember martial humiliation? The British burned our national capital, in an event whose infamy ranks alongside the sneak attack at Pearl Harbor and the terrorist strike on the World Trade Center. The United States even tried to invade Canada during the War of 1812, but failed. We’re not supposed to lose anything to Canada, except maybe hockey games!

Then there’s James Lawrence, captain of the U.S.S. Chesapeake. In 1813, he sailed out of Boston, engaged a Royal Navy frigate, and uttered his famous rallying cry: “Don’t give up the ship!”

Now for the rest of the story: Moments after speaking these words, Lawrence died and his sailors did indeed give up the ship.

So it was that kind of a war.

Its beginnings were just as inauspicious. The War of 1812 started out as a trade war, with the United States trying to use commerce as a weapon, forcing Great Britain and France to respect American neutrality.

In 1806, we banned a list of British manufactured goods from our markets. The next year, we passed the draconian Embargo Act, which prohibited American ships from traveling to foreign ports. These moves were supposed to hurt the economies of Great Britain and France. Yet they devastated our own, while causing only minor inconveniences to our rivals.

The Embargo Act lasted about 15 months, but the reckless experiment with trade war continued: In 1809, Congress passed the Non-Intercourse Act, which allowed American ships to travel abroad, except to Great Britain, France, or their colonies. It was another disaster. In 1811, the government banned all imports from Great Britain and France.

Supporters of these measures thought that a trade war presented a good alternative to a shooting war. Yet their aggressive protectionism worsened relations between the United States and Europe. Rather than preventing a war, trade restrictions helped launch one.