“He went in with the purpose of killing as many Muslims as possible,” judge Annika Lindstroem said.

Manshaus believed that “Europe is under attack from people of ethnic origin other than his own” and that “the white race is on the brink of extinction”.

Manshaus expressed admiration for the massacre of more than 50 people at two New Zealand mosques last year by a white supremacist who filmed and broadcast the killings live.

The attack also drew comparisons with the massacre of 77 people by far-right mass killer Anders Behring Breivik in 2011 in Norway’s worst peacetime atrocity.

Manshaus wore a helmet camera, filming the mosque shooting, but failed in his attempt to broadcast the attack online.

In his first court hearing last August, Manshaus appeared with black eyes and bruises on his face and neck from the ensuing fight at the mosque.

The court rejected the defence’s plea to declare Manshaus insane, relying instead on a psychiatric evaluation which found him fit to stand trial.

The 21-year prison term, the steepest available for the first-degree murder and breach of anti-terrorism law, also contained a provision that his release can be put off indefinitely should he still be considered a threat to society.

Additional reporting by Associated Press

This article appeared in the South China Morning Post print edition as: 21 years for killer of Chinese stepsister

ncG1vNJzZmivp6x7tK%2FMqWWcp51ku6bD0miuqKqcmXymwdGop55nkafBqq%2FLnmZsaGhtg3Z9jp%2BYq2WinrSpwIynpquvlZy2orqMoKynpZGjequtyKWcnWViZnq6scCrqmaZlqmys3nKoqOloZ6ceqS0yKecrJ0%3D