Stocks racked up more losses on Wall Street Tuesday as a trade war between the U.S. and its key trading partners escalated, wiping out all the gains since Election Day for the S&P 500.

The Trump administration imposed tariffs on imports from Canada and Mexico starting Tuesday and doubled tariffs against imports from China. All three countries announced retaliatory actions, sparking worries about a slowdown in the global economy.

The S&P 500 fell 1.2%, with more than 80% of the stocks in the benchmark index closing lower. The Dow Jones industrial average slid 1.6%.

The Nasdaq composite slipped 0.4%. The tech-heavy index briefly reached a 10% decline from its most recent closing high, which is what the market considers a correction, but gains for Nvidia, Microsoft and other tech heavyweights helped pare those losses.

Financial stocks were among the heaviest weights on the S&P 500 index. JPMorgan Chase fell 4% and Bank of America lost 6.3%.

Markets in Europe fell sharply, with Germany’s DAX falling 3.5% as automakers saw sharp losses. Stocks in Asia saw more modest declines.

The recent decline in U.S. stocks has wiped out all of the markets’ gains since Trump’s election in November.

The tariffs are prompting warnings from retailers, including Minnesota-based Target and Best Buy, as they report their latest financial results. Target fell 3% despite beating Wall Street’s earnings forecasts; Best Buy plunged 13.3% for the biggest drop among S&P 500 stocks.

Companies in the S&P 500 are wrapping up the latest round of quarterly financial reports. They’ve posted broad earnings growth of 18% for the fourth quarter. But Wall Street has already trimmed expectations for the current quarter to about 7% growth from just over forecasts of 11% at the beginning of the year.

In the bond market, Treasury yields were mixed. The yield on the 10-year Treasury rose to 4.20% from 4.16% late Monday. It’s still down sharply from last month, when it was approaching 4.80%, as worries have grown about the strength of the U.S. economy.

The yield on the 2-year Treasury held steady at 3.94%.

All told, the S&P 500 fell 71.57 points to 5,778.15. The Dow dropped 670 points to 42,520.99, and the Nasdaq shed 65.03 points to 18,285.16.

— Associated Press