Losses for several banks and Big Tech stocks pulled indexes lower on Wednesday, even though the majority of stocks on Wall Street rose.

The S&P 500 slipped 0.5% for its second straight loss after setting its all-time high. The Dow Jones industrial average dipped 42 points, or 0.1%, and the Nasdaq composite lost 1%.

Wells Fargo helped pull the market lower after falling 4.6%. The San Francisco-based bank reported weaker profit and revenue for the latest quarter than expected, with analysts citing lower trading fees and other miscellaneous items.

Bank of America fell 3.8% despite reporting a stronger profit than analysts expected, with some consternation about the size of its upcoming expenses. Citigroup, which is in the midst of a turnaround under Chair and CEO Jane Fraser, fell 3.3% following its own profit report.

Biogen sank 5% after the biotechnology company said it expects to take a hit to its profit for the fourth quarter of 2025 due to research and development expenses and other costs that it acquired.

Nvidia fell 1.4%, and Broadcom sank 4.2%.

Still, more stocks rose on Wall Street than fell, and the strongest forces keeping the S&P 500 from steeper losses were Exxon Mobil and other oil companies.

Exxon Mobil rose 2.9%, and Chevron climbed 2.1% as the price for a barrel of benchmark U.S. oil rose 1.4% to settle at $62.02.

Stocks of smaller companies also did better than the rest of the market, with the Russell 2000 index rising 0.7%.

All told, the S&P 500 fell 37.14 points to 6,926.60. The Dow dipped 42.36 to 49,149.63, and the Nasdaq composite fell 238.12 to 23,471.75.

Oil prices have rallied recently after protests swept Iran, which is a member of the OPEC group that helps set crude prices.

Brent crude, the international standard, rose 1.6% and briefly brought its gain for the year so far to nearly 10%, before prices for both it and U.S. oil fell back later in the afternoon.

In the bond market, Treasury yields sank as investors sought investments seen as safer. Several reports on the U.S. economy also came in mixed.

One said that shoppers spent more at U.S. retailers in November than economists expected. A separate report said prices rose modestly at the U.S. wholesale level in November.

The yield on the 10-year Treasury fell to 4.14% from 4.18% late Tuesday.

— Associated Press