A conserative gym teacher running for Congress admitted to a steamy affair that may cost her some votes.

A conservative ex-gym teacher running for a legislative seat in Virginia has admitted to a steamy sapphic tryst with a student.

Linda Wall, 61, confirmed to The Associated Press this week that the incident occurred four decades ago when asked about a sworn testimony she gave admitting to "sexual relations with a minor."

Wall, now a staunch opponent of same-sex marriage, claims that God cured her of her homosexuality and that she simply made a mistake.

"Forty years ago, I was a different person," said Wall, who's seeking to win a seat in the state's House of Delegates. "I was a heavy pot smoker with ... impaired judgment and made some bad choices. You do that out of college sometimes."

According to the deposition, Wall resigned from the school in Prince George County after the district superintendent approached her about the lesbian affair. She was never criminally charged.

She declined to name the school, arguing she didn't want to risk identifying her former student.

The shocking revelation comes just two weeks before the election, in which Wall is up against Democrat Connie Brennan and Republican Matt Fariss for a vacant seat.

Wall's deposition was obtained by The AP by former Republican candidate Paul Jost, who sued Wall, among others, for defamation over claims made in a heated 2003 GOP primary.

"I did it because it shows Linda Wall is not fit to hold public office," Jost said.

Wall insists she wasn't trying to hide her gay relationships and goes as far as to blame liberal college professors for past mistakes on her campaign website.

"When I went away to Longwood College, I allowed liberal professors to destroy my Judeo-Christian upbringing," she writes. "I guess one could say I became the 'prodigal daughter.' But when my rebellious years came to a close, I knew it was the Lord that I needed."