An Ohio state lawmaker who defended conservative policies and family values resigned last week after officials said he acknowledged engaging in “inappropriate behavior” with a person at his office.

The lawmaker, Wesley Goodman, 33, a Republican, was elected to the Ohio House of Representatives last year. He campaigned on states’ rights, trimming the state budget and repealing the Affordable Care Act.

Mr. Goodman, who is married, promoted “the ideals of a loving father and mother” and “a committed natural marriage” on his campaign website, which has since been taken down. He worked for Jim Jordan, a congressman from Ohio known for his staunch opposition to gay marriage.

A series of reports alleged that for years Mr. Goodman had sought, or engaged in, consensual sexual encounters with men. The Washington Post also reported on an allegation that Mr. Goodman had groped an 18-year-old college student in 2015.