A former law enforcement employee found himself on the other side of the law.

Felipe Santiago Peralez, 24, went before a judge Wednesday following his arrest.

The former dispatcher at the La Joya Police Department is accused of sexually assaulting a woman who was jailed.

The Texas Rangers arrested Peralez around 12:40 p.m. on Wednesday.

Justice of the Peace Marcos Ochoa charged the 24-year-old with three counts of violating the civil rights of a person in custody relating to improper sexual activity and one count of official oppression.

The woman was booked into the La Joya Police Department TMs city jail by Penitas police on May 29, 2014, documents reveal.

Peralez was caught on camera going into the jail area and using his right hand to sexually assault a female inmate, according to a criminal complaint.

Authorities said the victim made an outcry to a Penitas police officer the next day.

A Ranger obtained a copy of the video and interviewed a Penitas police officer.

Peralez resigned from the police department after the incident, according to La Joya police.

The former employee was issued a $33,000 for the charges.

Violating the civil rights of a person in custody by engaging in sexual contact is a state jail felony.

He faces up to two years behind bars for each count if convicted of the state jail felony charge.