On 18 July 2016, Riaz Khan Ahmadzai, a 17-year-old refugee from Afghanistan, stabbed and injured five people on and outside a train near Würzburg, Germany. He was shot dead by police soon afterwards, after attacking a police tactical unit with an axe. Investigations revealed he was in contact with members of the Islamic State.

Attack

At about 21:00 local time, on a train traveling on the line between Treuchtlingen and Würzburg, a youth, armed with a hatchet and a knife, stabbed random passengers, injuring a family of four Hong Kongers, two critically. The knifeman then went out of the train, stabbing a woman who was walking her dog, hitting her with the axe twice in the face, seriously injuring her. The perpetrator was located by the police about from the train. The attacker tried to flee and was shot dead by the SEK police tactical unit after they confronted him and he tried to attack them with the hatchet. He reportedly shouted "Allahu Akbar!" during the attack, according to Oliver Platzer, a spokesman for the Bavarian Interior Ministry. Public prosecutor Erik Ohlenschlagern said police heard the attacker call out "Allahu Akbar!" in a recorded emergency call from a witness' mobile phone.

Würzburg train attack

On 20 July, it was announced that Attorney General Peter Frank had taken over the investigation, because of the suspicion that the attacker was a member of Islamic State.

Würzburg train attack

Victims

Five people were wounded in the attack. Four were members from the same family: a woman, her boyfriend and her parents, and were all tourists from Hong Kong. A fifth victim, attacked outside the train, was a local German woman. Fourteen witnesses were treated for shock.

Würzburg train attack

Perpetrator

Riaz Khan Ahmadzai, born on 6 April 1999 (), also known as Muhammad Riyad, was reported to be a 17-year-old Afghan male who arrived in Germany as an unaccompanied child refugee in 2015. He first lived in a refugee camp in Ochsenfurt, then for two weeks with a foster family in Gaukönigshofen southwest of Ochsenfurt, both in the district Würzburg. Prosecutors learnt the perpetrator wanted to avenge the death of a friend who had been killed in Afghanistan. Authorities later discovered evidence showing that Ahmadzai was in contact with a suspected Islamic State member and had originally been asked to drive a car into a crowd of people. Ahmadzai declined this suggestion as he was not able to drive the car. Instead, he told his contact that he would plan and carry out a train attack.

Die Welt reported that "he was a devout Muslim," but was not perceived as fanatical. Amaq News Agency published a two-and-a-half minute video, allegedly of him speaking in Pashto, proclaiming himself a soldier of the Caliphate, threatening further ISIL attacks in "every village, city and airport" and holding a knife. German officials were checking if the man in the video was in fact the attacker. The Chief of the German Chancellery, Peter Altmaier, told ZDF television, "The security authorities expect that this video is in all likelihood authentic".

Police found a hand-painted ISIL flag at his foster family's home, along with a letter he appeared to have written to his father, which they said read: "And now pray for me that I can get revenge on these non-believers, pray for me that I go to heaven."

Reactions

Authorities temporarily closed the train line between Ochsenfurt and Würzburg-Heidingsfeld.

Bavarian Interior Minister Joachim Herrmann said, "There are witnesses that suggest there may be an Islamic background to this but that is far from clear at this point." Both he and Landeskriminalamt spokesman Fabian Hench declined to confirm the attacker said "Allahu Akbar". Herrmann said it did not appear the victims were targeted for being Chinese. On 21 July, Herrmann demanded stricter control of the German borders. People without valid papers had to be adhered and checked at the border. "We can't let it slide this way anymore", Herrmann said. Hermann also criticised slow asylum proceedings. No fingerprints were taken of the perpetrator and no hearing of him took place.

German Chancellor Angela Merkel condemned the attack as an "incredibly cruel act" and promised that everything would be done by the authorities to prevent further attacks.