The government under President Xi Jinping has taken an increasingly hard line on controlling information within the country as its traditional means of doing so come under threat from social media and mobile Internet messaging services.
Although foreign media reports are aimed mostly at audiences outside China, the moves against international journalists reflect both wariness of their reports seeping into the domestic audience and sensitivity about the country's reputation abroad.
"International coverage is no longer simply damaging to China's international image," said David Bandurski, a researcher with the University of Hong Kong's China Media Project. "It's also damaging to China's domestic image of the ruling party."
China last week blocked access on the mainland to the websites of several European and North American news outlets that participated in or carried reports of an investigation that showed the relatives of China's president and other business and political leaders were linked to offshore tax havens.
More From This Section
In addition to such rough treatment, foreign reporters working in China also generally deal with official intimidation of interviewees as well as bars on going to Tibet or troubled parts of ethnic minority regions.
In recent years, however, the government has added a new form of pressure, press freedom groups say, by delaying or denying journalism visas for organizations whose coverage it dislikes. China says it handles the foreign media according to its laws.
Ramzy will be the second Times reporter in 13 months to leave the mainland over visa issues after Chris Buckley, a reporter who joined the Times' China team in 2012, similarly departed for Hong Kong at the end of that year.