On a Tuesday morning in September, a 10-year-old boy was approaching the gates of a Japanese school in Shenzhen in southern China, when a stranger walked up and stabbed him.
He died of his injuries. The killing shocked Japan and China, and sparked a diplomatic furore.
The Japanese government said it believed what happened was motivated by xenophobia, with the country’s foreign minister blaming the attack on “malicious and anti-Japanese” social media posts.
Online commentators have noted the killing happened on a politically sensitive date – 18 September, which is the anniversary of an incident that led to the Japanese occupation of Manchuria in China in the early 1930s.
For some, what happened is a sign of online nationalism – manifesting in recent years as rising anti-foreigner rhetoric – spilling over into the real world.
For years, posts related to events during World War Two have proliferated on the Chinese internet, with the Japanese invasion during the war remaining a sensitive topic for nationalists on both sides. In China, Japan’s wartime atrocities have long been a sore point as Beijing maintains that Tokyo has never fully apologised.
The online posts are part of a wider phenomenon, which encompasses both xenophobia and attacks on Chinese nationals for being unpatriotic. One argument by analysts is that this digital nationalism has gone mostly unchecked by the Chinese government, with online patriotism fanning flames of anti-foreigner sentiment as well as accusations against Chinese figures.
While many on Chinese social media mourned the killing of the Japanese schoolboy, a few cyber-nationalists struck a very different tone.
“I have no opinion on how Japanese die if they don’t apologise for history,” read one popular comment on Weibo, while another pointed out that the Japanese had killed many Chinese during World War Two “and haven’t apologised till this day. How could they be even close to being described as civilised?”
A Chinese official reportedly wrote messages in a private group chat saying it is “not a big deal to kill a Japanese child” and “it’s in our regulations to kill Japanese”. He has since been placed under investigation, according to local media outlet Phoenix News.
As Japanese officials demanded answers for the “despicable” crime, Beijing sought to play it down, heavily censoring discussion of the incident online and calling it an “accidental, individual case” and an “isolated incident”.
But this is the third high-profile attack on foreigners in recent months, all of which China has described as “isolated incidents”.
In June, a Japanese mother and her son were attacked at a bus stop outside a Japanese school, and a Chinese woman died while trying to shield them. This happened just weeks after four US university tutors were stabbed in a park in Jilin. While the motives for both attacks were also unclear, they spurred anxious discussion that they were linked to xenophobic rhetoric online.
Similarly, the author and Nobel Literature Prize laureate Mo Yan was accused of “beautifying” Japanese soldiers and being unpatriotic in his works by a nationalist blogger, who controversially sued the writer for insulting China.
These moves have sparked deep concern. Hu Xijin, the former editor of state-run newspaper Global Times, warned that nationalistic attacks on creatives like Mo Yan could have a chilling effect.
And the outspoken liberal intellectual Yu Jianrong said the recent stabbings of foreigners were fuelled by “dangerous populist tendencies, which deserve our utmost vigilance”.
Even state media has accused online nationalists of “making patriotism a business”. One commentary by CCP mouthpiece People’s Daily said those who “stir up public opinion and add fuel to the flames in order to… gain traffic and make personal gains, should be severely punished”.
But the ruling party has had a hand in stoking the fire, some say.
“State-endorsed patriotism” and Beijing’s constant warnings about foreign influence has contributed to the “intense nationalism” we see today, says Rose Luqiu, an associate professor at Hong Kong Baptist University’s communication school. What has aggravated it, she says, is the legal risk of being deemed unpatriotic.
The Chinese government has now criminalised the “distortion and smearing [of] heroes and martyrs” – this was used in the lawsuit against the author Mo Yan. It has also passed a sweeping anti-espionage law and launched a campaign encouraging the public to report suspicious activity by foreigners.
To legitimise its rule, it has stepped up efforts to strengthen patriotism in schools, where from a young age Chinese children are taught to love not just their country but also the CCP.
Meanwhile, a global surge in Sinophobic sentiment during the Covid pandemic and growing suspicion of China in the West due to trade tensions has fed a sense among some Chinese that their country is being unfairly discriminated against by foreigners.
China’s slowing economy and a spreading social malaise have also played a role. “Many people in China are confronted with severe social and economic worries. Inflation, housing crises, youth unemployment, and evaporating pensions are all causing anxieties. Nationalism is a readily available and highly potent framework for venting those frustrations,” says Florian Schneider, an expert in online Chinese nationalism at Leiden University.
All these factors have resulted in nationalist bloggers becoming a prominent fixture of the Chinese internet in the last few years. Well-known influencers can amass millions of followers – and potentially earn income from the traffic – by pumping out patriotic content extolling the virtues of China and the CCP while denouncing their enemies.
While they often act in the name of revolutionary leftist fervour, their behaviour is actually more similar to the far right found in other countries who lead xenophobic and reactionary movements, Professor Schneider tells the BBC.
As “populists who are trying to make China great again”, they “harbour hopes of returning society to some imagined former glory, and see all manner of elites and foreign powers as roadblocks to this goal”.
Sometimes authorities appear to listen to concerns.
In July, they quietly dropped a controversial amendment to a national security law after a public outcry. They acknowledged that a proposed ban on “hurting Chinese people’s feelings” could “infringe upon the legitimate rights and normal life of the public”.
Chinese social media platforms have tried to rein in online nationalists by periodically suspending their accounts.
Well-known nationalist influencers Sima Nan and Guyanmuchan have been censored without warning. So was the blogger who tried to sue Mo Yan, whose lawsuit was also rejected by the courts.
One vlogger, who shot to notoriety this year after he posted a video accusing a shopping mall of putting up decorations that resembled the Japanese flag, was similarly shut down. A scathing state media commentary denounced his video as “a malicious report that rides on the online traffic of patriotism”.
Still, authorities appear to have a loose grip on online nationalists.
While dissenters are swiftly shut down or in some cases arrested in the name of social stability, nationalist bloggers are allowed a freer rein, despite their sometimes inflammatory rhetoric. State media has even boosted these voices by republishing their content.
The BBC has asked the Chinese government for a response on why nationalist content does not appear to be censored on social media as much as other content deemed sensitive.
That could be down to the fact the state views online nationalism as a useful safety valve to “dissipate dissent in a way that does not undermine its authority”, particularly during its current economic troubles, where “society really needs an outlet to express frustration”, says Dr Luqiu.
By encouraging nationalists and then occasionally reining them in, the government “harnesses nationalism to its advantage, only intervening when it risks spilling over” into an uncontrollable situation.
It may seem risky, but Beijing has successfully crushed serious challenges to its authority in recent years, such as the pro-democracy movement in Hong Kong in 2019 and the White Paper protests in 2022 against harsh zero-Covid policies.
The government is thus confident it can manage the dangers, and it means nationalism is likely to stay despite the backlash, analysts say.
“Nationalism is a mixed blessing for China’s leaders, and at the moment we are witnessing the costs of that,” says Professor Schneider.
“But will the leadership rethink or even abandon its nationalism in favour of something less toxic? I wouldn’t hold my breath.”
Additional reporting by Ian Tang.