The tribunal in the western city of Münster convicted the defendant, whose name was not released due to his age, of “assault resulting in the death” of the 25-year-old victim identified as Malte C., court spokesman Henning Barton told AFP.
As well as the five-year sentence, the judges ordered “his placement in a drug rehabilitation centre”, Barton said.
The 20-year-old had shouted homophobic insults and threats at several people attending an LGBTQ pride march in Münster in August 2022.
Malte C. had placed himself between the assailant and the group with the aim of protecting them, at which point the attacker became more aggressive.
He punched Malte C. in the face, causing him to fall to the ground and hit the back of his head on the ground. He underwent emergency surgery that night for a traumatic brain injury and was placed in an induced coma.
The 25-year-old died in hospital a few days later.
The case sparked anger across Germany, with LGBTQ groups calling for more decisive action against homophobic and anti-trans violence.
Rights organisations and religious leaders organised a public funeral for Malte C. in October which was attended by several local officials including police chief Alexandra Dorndorf, who posted a photograph on Twitter of herself
at the ceremony holding a rainbow flag in solidarity with the queer community.