An Uzbek asylum seeker who confessed to wanting to run over "infidels" in the April 2017 Stockholm truck attack that killed five people will go on trial Tuesday accused of terrorism. Rakhmat Akilov had sworn allegiance to the Islamic State (Isis) on the eve of his assault on the Swedish capital, though the jihadist group never claimed responsibility.

The prosecution's charge sheet, presented in late January, paints a picture of a lonely illegal alien working odd construction jobs who drank alcohol and took drugs, and who acted alone.

On the afternoon of Friday, April 7th, Akilov stole a beer delivery truck and drove it down a bustling pedestrian shopping street, swerving wildly to hit as many people as possible before crashing into the facade of a department store. He killed five and injured 10.

Akilov, born in 1978, was arrested in a Stockholm suburb hours after his attack thanks to public transport video surveillance footage, and confessed.

He faces charges of "terrorism and attempted terrorism". The trial is scheduled to last through May, with a verdict due in June. According to the charge sheet, Akilov wanted to "instigate fear among the public" and "force Sweden's government and parliament to end Sweden's participation in military training of the global coalition against Isis in Iraq".

The trial opens seven months ahead of Sweden's legislative elections, where security is shaping up to be one of the main campaign themes.

The trial is expected to focus on Akilov's intentions: Was it premeditated? Was there a religious motive? Or was it the act of a desperate man?

Akilov is scheduled to address the court as of February 20th.

He arrived in Sweden in 2014, at the start of the big migration wave to Europe. Sweden took in 300,000 asylum seekers in 2014-2016. Akilov's application for Swedish residency was rejected in 2016, after which he went underground. His wife and four children had stayed behind in Uzbekistan.

Prosecutors believe he acted alone, but the investigation has revealed he chatted with unidentified contacts on social media about his plans as far back as January 2017. According to the prosecution, Akilov also searched the internet for information on jihadist groups, swearing allegiance to Isis, possible targets, and how to build a bomb.

Uzbek police claim he tried to enter Syria from Turkey to join Isis in 2015, but there is no proof of that.

Uzbek authorities also claim they shared intelligence with Sweden about Akilov prior to the attack, but Swedish terrorism expert Magnus Ranstorp rejects that notion. "I don't believe that," he said, noting it is "an authoritarian government... It's very easy for them to play politics in saying that they give that information" to the Swedes.

Swedish intelligence agency Säpo had long warned against the possibility of a truck attack, but no one really believed it would ever happen. The Scandinavian country has experienced only one other terror attack in modern times. But plenty of crime, since the "start of the big migration wave"

Some 300 people have left Sweden to join jihadist groups in Syria and Iraq since 2012, according to Säpo. Around 140 have returned to Sweden and 50 or so have been killed.