A pastor at a Denver-area church will spend two years in jail after pleading guilty to sexually assaulting a 15-year-old girl for more than three years.

The sentence delivered Thursday is the maximum possible for Erika Gonzalez, 36, who pleaded guilty to sexually assaulting a child with an age difference of more than 10 years, said Sue Lindsay, spokeswoman for the 17th Judicial District Attorney’s Office, which prosecuted the case.

The victim in the case, Candy Orona Villalba, told The Denver Post on Monday that she is happy with the conclusion of the case, even as she continues healing from the abuse she suffered.

“I know that she didn’t get a lot of time, but I’m still satisfied at least that she’s serving time for what she did,” said Villalba, who previously agreed to be publicly identified by The Post. “There will never be enough time in jail that she could serve for what she did to me.”

Villalba met Gonzalez in 2015 when she started attending Ministerios Rey de Reyes, a nondenominational Christian church that operated out of a rented space in Broomfield where Gonzalez was pastor.

Gonzalez convinced Villalba, then 15, to drop out of school and move in with her. Villalba thought the move would help her grow closer to God and felt special because of the pastor’s attention, Villalba previously told The Post.

But Gonzalez repeatedly sexually assaulted Villalba and relegated her to a household servant who wasn’t able to leave the Broomfield apartment they shared. Gonzalez slapped Villalba if she didn’t comply with her orders.

Villalba said she didn’t know how to stop Gonzalez when the pastor first kissed her and made other sexual advances. Gonzalez also told the teen that if she ever told anybody that she and her family would be punished by God. Villalba believed her. The pastor also threatened to tell their close-knit, deeply religious community about Villalba’s sexuality. The teen hadn’t yet told her mother that she is a lesbian and feared rejection.

Gonzalez continued to lead church services even after Villalba left the abuse and police began their investigation.

Gonzalez didn’t speak at the sentencing hearing Thursday, Villalba said. The pastor told police during the initial investigation that the relationship between her and the teen was consensual. Under Colorado law, however, it is illegal for someone of Gonzalez’s age to have a sexual relationship with a minor.

Villalba attended last week’s hearing because she wanted the judge to know her story when he considered Gonzalez’s sentence.

“He heard my story and it felt so good,” she said. “I thought, ‘This is my only opportunity to tell Erika what I had to say.’ ”

Villalba is still healing from the abuse, she said. Nightmares about Gonzalez haven’t stopped. But the conviction and sentencing have brought her a sense of peace.

“I feel content right now,” Villalba said. “She’s locked up and I’m safe.”