KINGSTON – A Marlboro man was sentenced in Ulster County court Tuesday to five years in state prison for having sex with a 12-year-old girl last year.

Terrance Toback, 22, was sentenced by Judge Donald Williams to five years in prison, 15 years of post-release supervision and will have to register as a sex offender.

In August and September Toback had sex with the girl and kept in contact with her via Facebook, according to the Ulster County District Attorney’s Office. He also had sexual contact with the girl on two other times during that time period, said the District Attorney’s Office.

On Sept. 29 state police from Highland arrested Toback after an investigation that started when someone reported the Facebook contact. He was living with his girlfriend and baby son at the time. The girl will also have an order of protection placed on her until 2041.