A global technology stock sell-off intensified on Tuesday, underpinned by worries over hefty bills for the build-out of artificial intelligence systems and concerns over tougher competition from China.

The Nasdaq Composite index, chock-full of big technology companies, came close on Tuesday to falling into correction, Wall Street’s term of a drop of 10 percent or more from its recent peak, before rebounding and ending the day down just 0.2 percent.

Still, the slide among top chipmakers remained. The American chip company Micron declined more than 8 percent on Tuesday, as did Advanced Micro Devices. Nvidia, the leading chipmaker, nudged lower before turning higher, but it remains more than 15 percent below its peak in May. SpaceX, Elon Musk’s rocket and A.I. company, also rebounded from an early morning slide. The stock remains more than 40 percent below its June peak.

The bumpy sell-off has taken hold over the past month, as fears about the ballooning spending by big technology companies on A.I. infrastructure and the threat of cheaper competitors undermining it have come to the fore. Cheaper A.I. models threaten the dominance of a handful of U.S.-listed companies, while competition from China has loosened South Korea’s grip on the market for memory chips critical to artificial intelligence.

On Tuesday, South Korea’s benchmark KOSPI index plunged nearly 11 percent, at one point triggering a temporary trading halt. The index has lost a third of its value over the past month but remains more than 40 percent higher for the year because of the soaring rally that preceded the drop. Benchmark indexes in Japan and Taiwan both fell around 4 percent. Stocks in China fell more than 2 percent.

The drop in Asia spread to American exchanges. The Nasdaq 100 index, which strips out banks from the broader index, making it further dependent on big tech companies, fell 1 percent, ending the day almost 10 percent below its peak in June.

In Europe, the German chipmaker Infineon fell just over 6 percent, and the Dutch semiconductor equipment maker ASML shed 2.9 percent. The Dow Jones industrial average, which is far less exposed to the tech industry, rose 1 percent on Tuesday, a sign that investors are homing in on A.I. concerns. Apple, which has taken a more restrained approach to artificial intelligence than some of its peers, rose 0.9 percent, briefly crossing a $5 trillion market valuation earlier in the day.

The latest market tremor began on Monday, when the shares of China’s leading memory chipmaker, ChangXin Memory Technologies, began trading after a blockbuster initial public offering. The company’s stock soared nearly 500 percent on its market debut, quickly making it the most valuable company on the Shanghai exchange. It slipped 4 percent on Tuesday.

The listing prompted widespread fears that intensifying industry competition could threaten rival global memory chipmakers in South Korea, Japan, Taiwan and the United States.

Rising spending forecasts from the tech firms leading the A.I. infrastructure build-out are also fanning fears. The recent market jitters put the spotlight on the big tech companies reporting financial results this week. Meta, Microsoft and SK Hynix, South Korea’s semiconductor giant, are set to report after the market closes on Wednesday, and Apple and Amazon on Thursday.

The staggering scale of spending required to keep up in the global A.I. race was highlighted this week with OpenAI, the parent of ChatGPT, nearing a deal to lease a $500 billion data center in Ohio, supported by $250 billion in financial backing from Nvidia. Last week, earnings reported by Tesla and Alphabet, Google’s parent company, shook the markets as they revealed their own enormous A.I. spending needs.

On Monday, the Chinese start-up Moonshot publicly released the details of its latest A.I. model, adding to investor concerns about China’s catching up to the United States in the A.I. arms race.

The latest market turmoil is an unwelcome turn at a time when the A.I. boom has served as a rare economic bright spot. In markets like South Korea and Taiwan, rising chip exports and soaring A.I. valuations have masked broader weakness across their domestic economies, which remain heavily dependent on energy imports from the Middle East.

The war in Iran, another major worry for investors, has rattled markets recently by restricting oil exports from the Persian Gulf and Red Sea, pushing up oil and gas prices. President Trump said on Monday that there was “a good chance” that a new round of diplomatic talks could yield a breakthrough in the monthslong war.

A recent pause in fighting has helped ease oil prices, with Brent crude, the international benchmark, falling 4.8 percent to $84.09 a barrel on Tuesday. Still, the cost of crude is up more than 15 percent since the start of the war, feeding into higher prices for gasoline and a wide range of products derived from petroleum.