An Allentown man who pleaded no contest to raping a young girl will spend years behind bars.

Nolvis Rivera-Garcia was sentenced Friday to 10 to 30 years in prison.

Rivera-Garcia sexually assaulted a 7-year-old girl on South 6th Street last July, investigators said.

The girl's mother caught him in the act, police said.