Five Afghan teenagers have been convicted of gang-raping a boy in Sweden - but none of them will be deported because their homeland is 'too dangerous', it has emerged.

The victim, who is under 15, was filmed during the attack, which happened in woodland in Uppsala, south east Sweden.

He was beaten and dragged out to the forest at knife-point before being subjected to an ordeal lasting more than an hour, prosecutors say.

After a trial, the teenagers were found guilty of aggravated rape - but despite requests by prosecutors, they will not be expelled from Sweden because of their age and the dangers they would face in their homeland.

Five Afghan teenagers have been convicted of gang-raping a boy at knife-point in a forest in Uppsala (pictured) in Sweden - but none of them will be deported, it has emerged

The court said that the boys would have been 'hit very hard' by deportation because of the security situation in Afghanistan.

Four of the defendants received jail terms of 15 months while the fifth was given 13 months, Expressen reports.

Prosecutors had claimed that one of the attackers filmed parts of the assault, overnight on October 24 and 25, and posted the footage on social media.

The victim, also from Afghanistan, went to police before five suspects were detained on child rape charges, it has been reported in Sweden.

All five denied the accusations with one saying he was not present.

Two others said they did not remember what they were doing while the final pair made 'some concessions'.

Court papers said the teenagers, aged 16 and 17, 'inflicted beatings' to the child's head and body before 'grabbing the defendant, covering his mouth and dragging or carrying him into a woodland area'.

At this point, the court papers say, each of the accused carried out serious sexual assaults on the child who was also bitten on the back and spat on.

The boy was beaten and dragged out to the forest at knifepoint before being subjected to an ordeal lasting more than an hour, prosecutors say

All arrived in Sweden as unaccompanied minors seeking asylum and could be deported if convicted.

According to local media, the alleged perpetrators and the victim knew each other but the motive for the attack is not yet known.

Stefan Wallin, a defense lawyer representing one youth, said his client neither admits nor denies the charges.

"He has no recollection of the events because of alcohol intoxication," Wallin told the AP.

Defense lawyers for the others didn't immediately return requests for comment.