An Elgin man who sexually assaulted a girl under the age of 13 multiple times over the course of three years was sentenced to 27 years in prison.

Joel Rivera, 44, of the 37W block of Brookside Drive, who pleaded guilty in August to three counts of predatory criminal sexual assault of a child, was sentenced by Kane County Judge Salvatore LoPiccolo.

Rivera knew his victim and assaulted her multiple times between August 2016 and August 2019, prosecutors said in a news release.

Per state law, he will serve at least 85% of the prison term and must register as a sex offender for the rest of his life. He will receive credit for the 947 days he spent in the Kane County jail awaiting the resolution of his case.

“The victim and her family are true survivors of this defendant’s habitual abuse,” Assistant State’s Attorney Tyler Cox said in the release.

“They have had their lives forever changed by his actions and his choice to sexually abuse a young child. I can only hope that the significant prison sentence imposed by Judge LoPiccolo will provide some peace to the victim and her family as they seek to move forward with their lives.”