China plunged a city of 13 million people into lockdown on Thursday to stamp out an increase in coronavirus infections, as the country doubles down on its "zero tolerance" policy just weeks before it is set to host the Winter Olympics.

The restrictions in the northeastern city of Xi’an took effect at midnight Wednesday, with no word on when they might be lifted. They are some of the harshest since China imposed a strict lockdown last year on more than 11 million people in and around the city of Wuhan, where the coronavirus was first detected in late 2019.

In this photo released by China's Xinhua News Agency, residents line up for tests at a COVID-19 testing site in Xi'an in northwestern China's Shaanxi Province, Tuesday, Dec. 21, 2021. (Li Yibo/Xinhua via AP)

In this photo released by China's Xinhua News Agency, residents line up for tests at a COVID-19 testing site in Xi'an in northwestern China's Shaanxi Province, Tuesday, Dec. 21, 2021. (Li Yibo/Xinhua via AP)

One person from each household will be allowed out every two days to buy household necessities, a government order said. Other family members were required to stay at home, although the rule was not being rigorously enforced, according to social media posts. People who happened to be staying in hotels became stuck.

Though the latest outbreak is 1,000 kilometers (about 620 miles) southwest of the Olympic host city of

In this photo released by China's Xinhua News Agency, a worker wearing a protective suit collects a throat swab sample at a COVID-19 testing site in Xi'an in northwestern China's Shaanxi Province, Tuesday, Dec. 21, 2021. (Li Yibo/Xinhua via AP)

In this photo released by China's Xinhua News Agency, a worker wearing a protective suit collects a throat swab sample at a COVID-19 testing site in Xi'an in northwestern China's Shaanxi Province, Tuesday, Dec. 21, 2021. (Li Yibo/Xinhua via AP)

 Beijing, any sign that the pandemic might be worsening in China will raise questions about whether and how it will manage to welcome thousands of athletes, officials and journalists when the Games open in just weeks on Feb. 4.

ORGANIZERS SAY TOKYO OLYMPICS COST $1.8B LESS THAN EXPECTED

On the one hand, there is a tremendous amount of national pride and investment riding on the Olympics and few would want a cancellation, postponement or dramatic reimagining at this late stage. On the other, Chinese authorities have adopted Draconian measures throughout the pandemic under their policy of seeking to stamp out every last case — and it's hard to see how welcoming so many people from abroad will square with that strategy.

Commuters wearing face masks to protect against COVID-19 exit a subway station in the central business district in Beijing, Thursday, Dec. 23, 2021. (AP Photo/Mark Schiefelbein)

Commuters wearing face masks to protect against COVID-19 exit a subway station in the central business district in Beijing, Thursday, Dec. 23, 2021. (AP Photo/Mark Schiefelbein)

That "zero tolerance" policy, which has led to frequent lock downs, universal masking and mass testing, has not been entirely successful. It has resulted in massive disruptions to travel and trade, but Beijing credits it with largely containing the spread of the virus. Overall, China has reported 4,636 deaths and 100,644 cases of COVID-19.

Xi’an — the capital of Shaanxi province, famed for its imperial relics, as well as a major center of industry — reported another 63 locally transmitted cases on Thursday, pushing the city’s total to at least 211 over the past week.

Commuters wearing face masks to protect against COVID-19 walk across a pedestrian bridge in the central business district in Beijing, Thursday, Dec. 23, 2021. (AP Photo/Mark Schiefelbein)

Commuters wearing face masks to protect against COVID-19 walk across a pedestrian bridge in the central business district in Beijing, Thursday, Dec. 23, 2021. (AP Photo/Mark Schiefelbein)

China has also been dealing with a substantial coronavirus outbreak in several cities in the eastern province of Zhejiang near Shanghai, although isolation measures there have been more narrowly targeted.

"We are not receiving any new guests, and no present guests are allowed to leave the hotel," said a receptionist at the Hanting Hotel in Xi’an, who only gave her surname, Li.

CLICK HERE FOR MORE SPORTS COVERAGE ON foxnews.1eye.us

Staff and guests are required to be tested every two days, Li said. "There will be an impact on our business, and we have no idea how long it will last."

A woman wearing a face mask to protect against COVID-19 walks along a street in the central business district in Beijing, Thursday, Dec. 23, 2021. (AP Photo/Mark Schiefelbein)

A woman wearing a face mask to protect against COVID-19 walks along a street in the central business district in Beijing, Thursday, Dec. 23, 2021. (AP Photo/Mark Schiefelbein)

The owner of a local bookshop said he had closed 10 days before, "fearing the worsening of the epidemic situation."

"I am now staying at home watching television." said the owner, who gave only his surname, Xiao.

CLICK HERE TO GET THE FOX NEWS APP

Movement outside his compound requires permission from the local neighborhood committee, he said. "I think the situation will get better eventually, and I don’t worry at all because we have the government behind us," Xiao said.