A choppy day in the markets left major U.S. stock indexes little changed Tuesday as the Trump administration pressed its campaign to win more favorable trade deals with nations around the globe by leaning into tariffs on goods coming into the U.S.

The S&P 500 slipped 0.1% a day after posting its biggest loss since mid-June. The benchmark index remains near its all-time high set last week.

The Dow Jones industrial average gave back 0.4%. The Nasdaq composite eked out a gain of less than 0.1%, staying near its own record high.

The sluggish trading came as the market was coming off a broad sell-off following the Trump administration’s decision to impose new import tariffs set to go into effect next month on more than a dozen nations.

During a cabinet meeting Tuesday, Trump said he would sign an executive order placing a 50% tariff on copper imports, matching the rates charged on steel and aluminum.

Shares in mining company Freeport-McMoRan rose 2.5% following Trump’s remarks. The price of copper for September delivery jumped 13.1% to $5.69 per pound.

Gains in technology, energy and health care stocks helped outweigh a pullback in banks and other sectors.

Intel jumped 7.2%, Exxon Mobil rose 2.8% and AbbVie rose 1.1%. JPMorgan and Bank of America each fell 3.1%.

Amazon shares fell 1.8% as the online retail giant kicked off Prime Day, which, beginning this year, lasts four days.

Elsewhere in the market, First Solar slid 6.5% after Trump issued an executive order ending subsidies for foreign-controlled energy companies.

Hershey Co. lost 3.2% after the chocolate maker announced that Wendy’s CEO Kirk Tanner will succeed current CEO Michele Buck, who is retiring.

Shares in WeightWatchers parent WW International gave up an early gain and dropped 1.1% after the company announced that it has completed its reorganization and relisting on Nasdaq.

Bond yields mostly rose. The yield on the 10-year Treasury edged up to 4.40% from 4.39% late Monday.

All told, the S&P 500 fell 4.46 points to 6,225.52. The Dow lost 165.60 points to 44,240.76, and the Nasdaq added 5.95 points to 20,418.46.

— Associated Press