A surge in Covid-19 cases led Chinese manufacturing hubs Shenzhen and Changchun to lock down in recent days, halting production at many electronics and auto factories in the latest threat to the world’s battered supply chain.

A number of manufacturers including Foxconn Technology Group, a major assembler of Apple Inc.’s iPhones, said they were halting operations in Shenzhen in compliance with the local government’s policy.

The...

A surge in Covid-19 cases led Chinese manufacturing hubs Shenzhen and Changchun to lock down in recent days, halting production at many electronics and auto factories in the latest threat to the world’s battered supply chain.

A number of manufacturers including Foxconn Technology Group, a major assembler of Apple Inc.’s iPhones, said they were halting operations in Shenzhen in compliance with the local government’s policy.

The government placed the city into lockdown for at least a week and said everyone in the city would have to undergo three rounds of testing after 86 new cases of domestic Covid-19 infections were detected Sunday.

While China’s case numbers are tiny by global standards, the country has adopted a zero-Covid policy that aims at nipping all outbreaks in the bud through testing and lockdowns.

Over the past two years, the world’s second-biggest economy has repeatedly locked down entire cities or sections of them, ordering factories to suspend operations as people stay home.

Such suspensions have typically lasted for several weeks as authorities worked to bring down the number of infections, causing production snags in the semiconductor, automobile and other industries.

Officials didn’t say when the lockdowns would end—in Shenzhen, officials said they would decide whether the lockdown needs to be extended after a week based on the state of the pandemic then. In recent days, daily Covid-19 infection numbers in China have hit levels not seen since early 2020, and officials have said the surge has been driven by the more infectious but milder Omicron variant of the coronavirus.

Over the past two years, companies have been grappling with various supply disruptions stemming from the pandemic, including a major chip shortage. Most recently, they have been facing fallout from Russia’s invasion of Ukraine.

The disruption in Shenzhen came less than a week after Apple showed off new products including the latest version of its budget iPhone SE, which features high-speed fifth-generation, or 5G, communications, and the high-end Mac Studio computer.

A shortage of electronics has contributed to a rise in prices around the globe including in the U.S., where inflation in February hit a 40-year high of 7.9%.

Foxconn’s sites in Shenzhen, in southern China, produce some iPhones as well as iPads and computers. The majority of iPhones, however, are made at a factory in central Henan province. Foxconn, formally known as Hon Hai Precision Industry Co., said it would aim to keep up production by shifting work to other plants in China.

Printed circuit-board maker Unimicron Technology Corp. said its Shenzhen subsidiary halted production Monday morning. Unimicron is also a major Apple supplier but doesn’t currently handle Apple-related orders in Shenzhen, according to Apple’s latest supplier list. Unimicron said the subsidiary accounts for less than 3% of its total revenue.

At least six other companies on the Apple list are based in Shenzhen.

Apple didn’t immediately respond to a request for comment.

The city is home to many Chinese manufacturing giants including telecommunication equipment maker Huawei Technologies Co. and electric-vehicle maker BYD Co. , which produces electric cars and batteries.

Some businesses in Shenzhen deemed essential remained open. Huawei’s offices in Shenzhen were among those that continued to operate in line with local virus-control measures, a company spokeswoman said. BYD said it faced some impact on production at its manufacturing base in Shenzhen. A spokeswoman didn’t offer details.

All buses and subways have been shut down. The local government called on businesses to halt most activities, with exceptions for those providing essential services for locals and people in neighboring Hong Kong.

As countries loosen Covid-19 restrictions, Hong Kong is sticking to a 'dynamic zero-Covid' approach – with help from Beijing. A surge in cases has overwhelmed hospitals and threatens business confidence in the global financial hub. Photo: Bertha Wang/Bloomberg The Wall Street Journal Interactive Edition

More than 40 Taiwan-based makers of semiconductors and other electronic components filed announcements with the Taiwan Stock Exchange on Monday saying they were temporarily closing facilities in Shenzhen and nearby Dongguan.

Another manufacturing hub hit hard by Covid-19 is Changchun in northeastern Jilin province. The city has been under lockdown since Friday.

Car plants in Changchun—home to state-owned auto maker China FAW Group Co.—have halted operations in recent days.

Volkswagen AG is halting production at its vehicle and component plants in the city from Monday through Wednesday, a spokeswoman said, while Toyota Motor Corp. also halted production at its Changchun plant on Monday and plans to resume operations based on government instructions, a spokesman said.

Toyota and Volkswagen each run their plants with FAW, their Chinese joint-venture partner. In addition to the Toyota and Volkswagen plants, FAW has also halted production at its three other plants, a person familiar with the matter said.

On Monday, Jilin authorities further tightened pandemic policies, banning most people from leaving the province or the cities they are in.

Write to Yang Jie at jie.yang@wsj.com and Yoko Kubota at yoko.kubota@wsj.com