The southwestern Chinese city of Ruili is small, remote and largely unknown internationally. It is also, when it comes to the coronavirus, perhaps the most tightly regulated place on earth.

In the past year, it has been locked down four times, with one shutdown lasting 26 days. Homes in an entire district have been evacuated indefinitely to create a “buffer zone” against cases from elsewhere. Schools have been closed for months, except for a few grades — but only if those students and their teachers do not leave campus.

Many residents, including 59-year-old Liu Bin, have gone months without income, in a city that relies heavily upon tourism and trade with neighboring Myanmar. Mr. Liu, who ran a customs brokerage before cross-border movement essentially stopped, estimated he had lost more than $150,000. He is tested on a near-daily basis. He borrows cigarette money from his son-in-law.

“Why do I have to be oppressed like this? My life is important too,” he said. “I’ve actively followed epidemic control measures. What else do we normal people have to do to meet the standards?”

As the rest of the world shifts to a strategy of living with the coronavirus, China has remained the last country chasing full elimination, for the most part with success. It has recorded fewer than 5,000 virus-related deaths, and in parts of the country without confirmed cases, the outbreak can feel like a hazy memory.

But the residents of Ruili — a lush, subtropical city of about 270,000 people before the pandemic — are facing the extreme and harsh reality of living under a “Zero Covid” policy when even a single case is found.

While other Chinese cities have been locked down to control flare-ups, those restrictions have often been limited to certain neighborhoods or been eased after a few weeks. But in Ruili, the past year has consisted of extended paralysis, with people confined to residential complexes for weeks at a time. Even during the gaps between official lockdowns, residents have not been allowed to dine in at restaurants. Many businesses remained closed.

Only high school sophomores and juniors, as well as third-year middle school students, have been allowed to resume face-to-face classes — if they live on campus. Classrooms have been converted to dorms. Since students are always around, they also have classes on weekends.