The woman was sentenced to probation and psychiatric care. She must also pay 52,000 kronor ($8700) in damages to the man she accused of raping and threatening her.
The incident occurred in July of 2006 in Haninge, south of Stockholm. The woman called police and claimed that a man had locked her in an apartment, threatened her with a gun, and raped her several times.
Police sent 14 patrol cars and a few hours later arrested a man who willingly opened the door.
The 37-year-old woman was taken to hospital, but a medical examination revealed no signs that she'd been raped.
A closer investigation later revealed that the man had asked her to leave, that she wasn't locked in as she had previously claimed, and that no sexual crime had been committed.
The whole incident had been fabricated and a year later the woman was indicted.
It's extremely unusual for women to be convicted of bearing false witness in cases of rape. But in this case the evidence was so strong that the prosecutor decided to proceed with an indictment.
The woman has been previously convicted for smaller crimes and suffers from psychological problems with self-destructive tendencies.