The Hildago County Sheriff's Office has arrested a man with a history of performing sexual acts on horses.

The report says deputies obtained the warrant for 45-year-old Cirilo Castillo for a criminal trespass investigation from last February.

Castillo was reportedly found inside a barn near Edinburg, Texas by the barn's owner nursing an injured leg. He told authorities he crawled there after being hit by a car.

However, due to Castillo's previous sexual encounters with her horses, the barn owner immediately recognized him.

The real cause of Castillo's injury? Authorities believes he received it in the middle of a sexual act with the horse when it kicked him.

Castillo was charged with a Class B misdemeanor, punishable by up to 180 days in jail for criminal trespassing.

[via KSAT]