The 35-year-old singer has been bothered by the same man since 2003 and has had to go to court on several occasions to try and put an end to his obsessive actions.
Now 37-year-old Devar Hurd's harassment has been put to an end by judge Justice Kirke Bartley Jr who handed him the maximum sentence at a Manhattan court for his crime, reported TMZ.
Speaking in court about the torment she had suffered, the "Foolish" singer said: "You continuously tweeted over and over again disgusting, derogatory things to me, I just wish you would stop."
"Even today in speaking to you ... He minimises this conduct after having heard in court the effect that it had on his victims. He refuses to accept responsibility for this."
Also Read
Although he was given four years' prison time, Hurd has already served 32 months and could be out of incarceration as soon as he goes before a parole board.
During the hearing, Hurd argued he didn't deserve such a harsh punishment as his crime was nothing more than online trolling.
This was Hurd's third trial for the same crime and that was taken into account when the sentencing was issued.