A 19-year-old man from Syria has been charged with raping a teacher at a high school in southern Sweden.

The teenage student allegedly pushed the mother-of-two into a room, locked the door and sexually assaulted her at the school in Nässjö, near Jönköping.

In the weeks before the incident, the student allegedly sexually harassed the teacher, after which he sent her a Snapchat message in which he threatened to rape her, court documents reveal.

Prosecutors claim the student said he would kidnap someone in the woman's family if she did not comply and have sex with him, Smalands Dagblad reports.

Allegations: The high school teacher claims the 19-year-old student pushed her into a room at the school in Nässjö, southern Sweden, and sexually assaulted her

After the alleged attack took place in mid-September, the alleged victim, who is in her 30s, wrote about the incident on her blog, stating 'a no is a no'.

'And no, it doesn't matter that you have an amazing figure. No, it doesn't matter that your clothes are sexy and tight. No, it doesn't matter that you know the person. No, it doesn't matter that no one else saw it or heard it. A no is a f***ing no.'

She writes in the blog, which has since been made inaccessible, how she tried to fight back, begged the attacker to stop and that she felt 'like a fragile bunny that the hunter was about to shoot with his gun.'

She also claimed that the attacker, whom she does not identify, had told her he had assaulted her 'because my body was so irresistable [sic]. So curvy, so sexy, so hot that you just had to do it.'

The suspect has been studying a language introduction programme at the high school, after reportedly arriving from Syria with his family in recent years.

Charged: The incident took place in Nassjo, southern Sweden, some time after the 19-year-old had allegedly threatened the teacher

Court documents list him as 'stateless', but having been born in the Syrian city of Damascus.

His family has since defended the 19-year-old in local media, claiming that the alleged rape 'may have been a misunderstanding between her and him'.

'My son is not like that. We are a traditional family, and he would never do something like that,' the mother of the suspect told Expressen.

Speaking to Aftonbladet, the 19-year-old's father said: 'He always has girlfriends, he doesn't need to rape anyone.'

The teenager is known to police, and has previously been arrested over a number incidents including shoplifting, drugs violations and resisting arrest.

The trial will take place in November. The 19-year-old suspect denies the allegations.