OAKLAND — A man who was convicted of kidnapping a pregnant woman who was on her way to church and raping her for four hours was sentenced Thursday to possible life in prison.

Hassan Lee Bratcher, 39, was convicted by a jury in September for the March 5 kidnapping and forcible rape of a 33-year-old woman who was eight months pregnant and also had a cognitive mental disability, according to the Alameda County District Attorney’s Office.

Alameda County Superior Court Judge Rhonda Burgess sentenced Bratcher to 25 years to life in prison for his crimes.

“Jane Doe” was on her way to church around 8 a.m. that day when Bratcher was driving around in his van and called out to her. They had a brief conversation during which he was very kind and pretended to know Doe in order to lure her into his car, according to the district attorney. Doe, in the last months of her pregnancy, was having difficulty walking and Bratcher offered her a ride to church.

But prosecutors said that once they arrived at her church, Bratcher became hostile and wouldn’t let her get out of the car. Over a period of four hours, Bratcher took her to different locations around Oakland and raped her multiple times in his van. Doe was finally allowed to leave the van and ran away, finding a nearby Walgreens to call her sister and tell her what happened, according to the prosecution.

Police were called and paramedics took her to the hospital where DNA evidence was found, eventually linking Bratcher to the crimes.

In court on Thursday, Judge Burgess said that in testimony during the trial, Doe described having recurring flashbacks to the rape, causing her to not attend church anymore. She described how church was a constant in her life, and she used to attend every week.

She also described the cruel way that Bratcher spoke to her when she pleaded with him to take her back to church that day in March, and that he made her urinate on a stairwell. Burgess said she was a “particularly vulnerable victim” given her circumstances. Although random that he was driving around, he specifically chose this victim because of her mental challenges, the judge said.

Bratcher had been released from prison three months before the attack, and was on parole. The judge said Bratcher showed particularly violent and predatory conduct, and a complete disregard for the law.

During the hearing, Bratcher, wearing yellow jail clothes, shuffled papers and anxiously looked around the courtroom and talked to his attorney when the judge was speaking.

Besides his 25-years-to-life sentence, Bratcher will also have to register as a sex offender for life.

Doe was present in the courtroom with supporters on Thursday, but did not give a statement during the sentencing.