Rakhmat Akilov, who used to be an asylum seeker, was sentenced by a Swedish court to life in prison on Thursday for killing five people and injuring another 10.
"The defendant has among a series of crimes been found guilty of terrorist offense by murder in five cases. The penalty has been set to life imprisonment," the Stockholm District Court said in a statement.
After the incident, police arrested two men on suspicion of being involved in the deadly attack, Akilov being one of them. The man had posted propaganda related to Daesh* terrorist organization on his Facebook page. During the trial he said that he wanted to punish Sweden for its part in the global fight against Daesh.
According to the police, Akilov applied for a residence permit in Sweden in 2014, but his application was denied in 2016 and he was supposed to be deported from the country.
*Daesh (also known as ISIS/ISIL/IS) is a terrorist group banned in Russia