Stocks on Wall Street gave up early gains and finished lower Friday, ending a three-week winning streak for the S&P 500.
A flurry of selling late in the day left the benchmark index 0.4% lower and in the red for the week. The Nasdaq composite fell 0.7%, while the Dow Jones Industrial Average ended 0.1% lower.
Despite the downbeat finish, the S&P 500 and the Nasdaq remain near their all-time highs.
A pullback in big technology stocks, which have been big winners in the market's record-breaking runup, weighed on the market. Apple fell 1.6%, Microsoft lost 1.3% and Meta Platforms ended 3% lower.
The late-afternoon burst of selling may reflect traders taking profits, with the market near all-time highs, or rebalancing their portfolios as the second quarter comes to a close, said Ross Mayfield, investment strategy analyst at Baird.
''It wouldn't surprise me at all if there was some profit-taking today, especially out of the names that have really run up,'' Mayfield said. ''That could be why we're seeing a little bit of additional weakness from big tech versus the rest of the market.''
The market headed higher in the early going following a closely watched report that showed inflation continues easing. Investors are hoping that cooling inflation will prompt the Federal Reserve to start cutting interest rates, which remain at their highest level in more than 20 years.
Consumer prices rose 2.6% in May compared with a year ago, according to the latest personal consumption expenditures index, or PCE. That signaled continued easing from a 2.7% reading in April and is sharply lower than the peak reading of 7.1% two years ago.