A Columbia man who was a substitute teacher in Monroe County has been sentenced on child pornography charges.

The Monroe County Sheriff’s Office reported on its Facebook page Friday that Ty Gramley was sentenced Thursday to five years in the Missouri Department of Corrections and was ordered to surrender his substitute teaching certificate.

Gramley pleaded guilty in February to possession of child pornography and distributing pornographic materials to a minor.

The crimes allegedly took place during Gramley’s time as a substitute teacher in the Madison C-3 school district.

Once his prison sentence is done, Gramley will be required to register as a sex offender.