A judge in Texas is being investigated after allegedly sending sexually explicit messages and naked photos to a woman while he sat at the bench during hearings.

Smith County Judge Joel Baker served as chief judge and vice chair on the State Commission for Judicial Conduct.

The woman, who hasn’t been identified, hired a private investigator and the two of them collected all the evidence against him.

The judge sent more than a thousand sexually explicit messages to the woman on Facebook. He first sent the woman a friend request on Facebook last year.

She’d never met the judge and didn’t know him. In the first message he sent, he told her that he would love to drink a glass of wine with her.

The time stamps of the Facebook messages prove that he messaged her during hearings. In addition to the sexually explicit messages, he sent multiple nude photos of himself.

The woman says that she did consent to the sexual conversations and did request photos. She even sent the judge some explicit photos of herself.

Judge Baker denied that he wanted to have a relationship with the woman and said he was trying to meet her “to find out why she was trying to destroy his family”.

He also denied sending any explicit video or photos, but he resigned last week.