The Chinese capital is on high alert before the Winter Olympics open on Friday, with measures in place to prevent cross-infection.
Beijing officials said Sunday they had sealed off several residential communities north of the city centre after two cases of COVID-19 were found.
Residents in the Anzhenli neighbourhood in Beijing's Chaoyang district were locked down on Saturday and will not be allowed to leave their compound.
According to state-backed Beijing News, the city is also setting up 19 points in the area to test residents every day until Friday, officials said at a briefing on the pandemic.
The Chinese capital is on high alert as it prepares to host the Winter Olympics opening Friday.
The organising committee said that another 34 cases were confirmed among athletes and others who have come for the Games.
In all, 211 people have tested positive among more than 8,000 who had arrived by the end of Saturday.
They include a Swedish cross-country skier and a snowboarder from Slovenia.
Everyone coming for the Olympics is being isolated from the general public for the duration of their stay in China to try to prevent cross-infection.
While the number of cases is low compared to other countries in the region, China has doubled down on its "zero-tolerance" policy, which tries to break the chain of transmission as soon as it is found.
The Chinese capital reported a total of 12 cases of COVID-19 between 4 pm Saturday and 4 pm on Sunday, said Pang Xinghuo, the vice head of the Beijing Center for Disease Prevention and Control. All those cases came from people already under some kind of pandemic control measures.
The city conducted multiple rounds of testing for millions of residents this past week in Fengtai district, where some residential compounds were locked down.
The participants in the Games stay in hotels that have been surrounded by temporary walls.
They can come and go only in special vehicles that take them directly to the venues or other Olympics facilities.
The public is not allowed to enter the hotel properties or the venues, though a limited number of spectators will be let in for the events.
Anyone who tests positive inside the Olympics bubble is isolated in a hospital or quarantine hotel to try to prevent the virus from spreading to other participants.