A steep slide in technology companies pulled U.S. stocks lower Thursday, erasing gains from the previous day.
Investors also sold big-dividend stocks as bond yields rose. Banks and energy stocks bucked the broader market decline. Crude oil prices rose for the sixth straight day.
The shift out of the technology sector came as investors bet central bankers may be ready to lift rates. That spurred many traders to move out of growth sectors, such as technology, and into value stocks, such as banks, said Erik Davidson, chief investment officer at Wells Fargo Private Bank.
"It's been a good day for energy and financials and a terrible day in particular for technology," Davidson said. "To the extent that you're going to be looking to put money into financials, into energy, you have to pull it from somewhere, and the sector that has done best so far this year is technology."
The Standard & Poor's 500 index fell 20.99 points, or 0.9%, to 2,419.70. The Dow Jones industrial average declined 167.58 points, or 0.8%, to 21,287.03. The average was down briefly more than 257 points.
The Nasdaq composite slid 90.06 points, or 1.4%, to 6,144.35. The Russell 2000 index of small-company stocks fell 9.07 points, or 0.6%, to 1,416.20.
Bond prices fell. The 10-year Treasury yield rose to 2.27% from 2.23%.
The stock market was coming off its biggest gain in two months. The market slide came about despite some encouraging news on the U.S. economy.
The Commerce Department said the nation's gross domestic product, the broadest measure of economic health, grew at an annual rate of 1.4% in the first quarter. That's better than the previous estimate of 1.2% and double the initial estimate of 0.7%. The upgrade reflects newfound strength in consumer spending and exports.
Still, investors appeared more focused on the possibility of higher interest rates following recent remarks from the president of the European Central Bank and the governor of the Bank of England.
"We've had a lot of commentary from central bankers around the world suggesting perhaps that it is within the field of vision that we could see some of the accommodation being removed from the system," said Eric Wiegand, senior portfolio manager for Private Wealth Management at U.S. Bank. "While we don't think that's imminent, it certainly does give investors something to consider."
Semiconductor manufacturers led the tech-sector slide.
Advanced Micro Devices fell the most among companies in the S&P 500 index, dropping 4.8% to $12.60. Lam Research sank 3.7% to $142.35. Alphabet, Google's parent company, went down 2.4%, to $937.82. Facebook declined 1.4% to $151.04. Apple fell 1.5% to $143.68.
All told, the technology sector fell 1.8%. Despite the drop, it leads all other sectors this year, with a gain of 16.5%.
"People are a little bit nervous about the high-flying tech sector," Davidson said. "Valuations are getting pretty stretched, so this is providing some opportunity to redeploy some of those assets into something that may be about to turn, the financials in particular."
Financial-sector stocks have been mostly rising this week as investors bet interest rates would climb further. Banks can make more money on lending when rates move up.
Bank stocks also got a boost from the Federal Reserve. The central bank said late Wednesday that 34 of the biggest U.S. banks can buy back more stock and raise their dividends because their balance sheets are strong enough to bear a major economic downturn.
The Fed's announcement marked the first time all the banks passed their "stress tests," which were created after the global financial crisis of 2008.
Citigroup rose 2.8% to $66.98. Regions Financial jumped 4% to $14.66. Bank of America advanced 1.8% to $24.32.
Traders also had their eye on company earnings and deal news.
Acuity Brands jumped 10.5% to $198.52 after the lighting company's latest quarterly earnings and sales exceeded Wall Street's expectations. The stock was the biggest gainer in the S&P 500 index.
Staples rose 1.5% to $10.08 after private equity firm Sycamore Partners agreed to buy the office supplies chain for $6.9 billion.
Rite Aid slumped 26.5% to $2.89 after Walgreens Boots Alliance abandoned a bid to buy the rival drugstore chain following resistance from U.S. regulators. Walgreens will now buy more than 2,000 stores, three distribution centers and inventory in a new deal. Walgreens rose 1.7% to $78.37.
The termination of the Rite Aid buyout canceled a related asset deal involving Fred's Pharmacy. Fred's shares slid 22.8% to $9.51.
Oil prices finished higher despite paring some early gains. Benchmark U.S. crude rose 19 cents to settle at $44.93 a barrel in New York. Brent crude, the international standard, rose 9 cents to close at $47.63 in London.
In other energy futures trading, wholesale gasoline held steady at $1.48 a gallon. Heating oil rose 1 cent to $1.45 a gallon. Natural gas fell 5 cents to $3.04 per 1,000 cubic feet.
Gold fell $3.30 to settle at $1,245.80 an ounce. Silver fell 14 cents to $16.65 an ounce. Copper rose 2 cents to $2.70 a pound.
The dollar fell to 112.07 yen from 112.28 yen. The euro rose to $1.1432 from $1.1382. The British pound rose to $1.2991 from $1.2929. European currency markets have been volatile in recent days after leading central bankers appeared to hint that a turn in monetary policy would come soon.
Major stock indexes in Europe also fell. Germany's DAX sank 1.8%. The CAC 40 in France slid 1.9%. The FTSE 100 index of leading British shares lost 0.5%.
In Asia, Japan's benchmark Nikkei 225 index rose 0.5%, South Korea's Kospi gained 0.6% and Hong Kong's Hang Seng climbed 1.1%. Australia's S&P/ASX 200 also climbed 1.1%.
2:35 p.m.: This article was updated with closing prices, context and analyst comment.