A serial burglar known as the fedora-wearing bandit who broke into a 67-year-old woman’s home and sexually assaulted her about two years ago was sentenced to 18 years in prison, acting Union County Prosecutor Lyndsay Ruotolo announced Thursday.

Jermaine Ramirez, 25, was convicted in November of first-degree aggravated sexual assault, second-degree sexual assault, second-degree burglary, and third-degree aggravated criminal sexual contact. He is also awaiting sentencing on an unrelated burglary case from Essex County, the Union County Prosecutor’s Office said.

Rahway police responded to a home on the 100 block of East Hazelwood Avenue on June 29, 2018 and found the victim suffering from multiple injuries, according to Union County Assistant Prosecutors Jessica Kahn and Bryan Tiscia.

The victim did not know Ramirez. She told authorities at the scene that she awoke to find an unknown man grabbing her, pinning her down. DNA evidence that was taken from the victim matched Ramirez and he was arrested in Rahway on July 3.

Ramirez previously pleaded guilty to charges stemming from another home invasion in Belleville during 2017.

He broke into a woman’s home around 3:45 a.m. in that incident, grabbed her and pulled her into another room, police said. The woman’s son woke up during the struggle and alerted his grandfather, but Ramirez escaped.

New Jersey State Police released a sketch of the intruder after that incident three years ago.

Union County Superior Court Judge Regina Caulfield required Ramirez to serve at least 85 percent of his sentence before the possibility of parole.

Rebecca Panico may be reached at rpanico@njadvancemedia.com. Follow her on Twitter @BeccaPanico.