NEW YORK — Wall Street indexes retreated on Wednesday during a broad technology selloff, though major benchmarks trimmed steeper losses as investors hunted for bargains ahead of the U.S. Thanksgiving holiday.

Earlier in the session, the Nasdaq experienced sharp declines of more than 4%, briefly pushing the Nasdaq 100 down 20% from its record closing high and near bear-market territory. Sentiment was weighed down by a downturn in artificial intelligence-related stocks—including a 4.7% drop in Nvidia shares—alongside worries over fresh U.S. tariff proposals targeting 14 trading partners and lingering concerns from the recent U.S. midterm elections.

Despite the headwinds, buyers stepped in to capitalize on lower valuations. Market analysts noted that the broader selloff created discrepancies that prompted investors to buy the dip before the holiday closure. Meanwhile, economic data released earlier showed stronger-than-expected third-quarter U.S. growth alongside rising October inflation, keeping expectations alive for upcoming Federal Reserve interest rate adjustments.

At the closing bell, the Dow Jones Industrial Average rose 346.96 points, or 0.69%, to 50,365.85. The S&P 500 dipped 6.03 points, or 0.08%, to 7,195.06, and the Nasdaq Composite dropped 121.93 points, or 0.52%, to 23,611.61. Markets will remain closed on Thursday for Thanksgiving and are scheduled for an early close on Friday.