MONTEREY (CBS SF) — A 31-year-old Salinas man was sentenced Wednesday to 45 years in state prison for committing three counts of forcible rape of a child under 14 years old and one count of child molestation.

Monterey County District Attorney Jeannine M. Pacioni said that all the counts that Fredy Aguilar was found guilty of were violent felonies and considered “strikes” under California’s Three Strikes law.

READ MORE: Authorities Search For Missing 17-Year-Old Swimmer North Of Santa Cruz

Investigators said a Jane Doe reported that Aguilar, a family member, had raped and molested her on several occasions from August 2018 to March 2020. She was under 14 years old at the time.

READ MORE: Mother, Son Arrested Following Berkeley Shooting, SWAT Standoff

In March 2020, the ongoing rapes were discovered during a family party by a family member who walked in. Jane Doe had attempted to stop Aguilar by screaming but he had threatened her and her parents if she screamed.

MORE NEWS: Scaled-Down Dreamforce Marks Major Step In San Francisco's COVID Economic Rebound

In addition to the prison sentence, Monterey County Superior Court Judge Stephanie Hulsey ruled that Aguilar will be required to register as a sex offender for life. A restraining order was also granted prohibiting Aguilar from contacting Jane Doe for a period of ten years, the maximum term under the law.