According to prosecutors, the planning took place between August 2024 and February 2025. Deputy Chief Prosecutor Henrik Olin said they had begun tracking the suspect in the latter half of 2024.
"We could conclude that this was a self-radicalised young man with clear violent Islamist sympathies. In particular, sympathies for the Islamic State," Olin told a press conference.
Olin said the man had several times sworn loyalty to IS.
The teen was also suspected of "preparation for serious crimes (using) flammable and explosive goods and training for terrorism".
While he had not made any explosives, he studied how to make them and acquired materials for their production, prosecutors said.
He had also purchased a bodycam to film the planned attack and visited a park in central Stockholm where he intended to carry out his attack.
"It is our, but perhaps even more the Security Service's, assessment that this investigation has prevented a serious terrorist attack in Sweden," Olin said.
The man was arrested in Stockholm on February 11th and has been in custody since. He was also charged alongside a 17-year-old male with attempted murder in Germany in August 2024.
Both were also charged with "participation in a terrorist organisation," according to the statement.
The trial will start on Tuesday next week and is expected to last until November 26th.
Comments