Beijing on Friday kicked off a drive to test two million people in 48 hours as the city rushed to snuff out a new local cluster of cases believed to be linked to a more contagious virus variant.
Long queues snaked through the Chinese capital -- which reported 19 coronavirus cases in the past week -- as the mass testing campaign got under way in Dongcheng and Xicheng districts.
The two downtown districts include Tiananmen Square and several government ministry offices, and are home to around two million residents.
AFP saw one testing line stretch over 400 metres (1,300 feet), with around a thousand people waiting to be tested.
"I received the notification this morning and thought I'd come during lunch hour; but there are so many people here in line," one Dongcheng resident said.
Officials plan to complete the testing by Saturday, and with the Lunar New Year holiday looming -- typically a time when hundreds of millions travel across the country to visit families -- they are keen to avoid a fully fledged outbreak in Beijing.
Locals have complained about long wait times in freezing temperatures, with social media users Friday saying queues for tests were "unending" as residents braved the winter chill to get swabbed.
"I queued for three hours and finally got tested," one user said on China's Twitter-like Weibo platform.
The Xicheng district government said in a social media notice Friday that some of the confirmed cases had been into the area and there was an "increased risk" of infections.
Dongcheng district also put out a notice to say tests would be organised in batches over Friday and Saturday for both residents and workers.
A partial lockdown is already in place in the city's southern Daxing district, where five neighbourhoods have been ordered to remain indoors and all 1.6 million residents have been told not to leave the city.
Beijing's rush to test comes as China faces its highest number of cases in nearly a year, after coronavirus was first detected in the central city of Wuhan in late 2019.
Officials have said that some of the cases detected in Beijing are linked to a variant of the deadly pathogen that was first found in the UK and is believed to be more transmissible.
China reported 103 new Covid-19 infections Friday, including six domestic cases in Shanghai and three in Beijing.
The majority of cases were in the country's northeast.
China had largely brought the virus under control -- with fewer than 5,000 official deaths -- even as the rest of the world struggles with mounting caseloads and overburdened hospitals.
But a series of small, localised outbreaks has prompted a swift response from Chinese officials.