A married lawmaker in Iowa resigned Monday after he reportedly was caught on camera kissing a female lobbyist at a bar.

Video obtained by Iowa Starting Line purportedly shows Senate Majority Leader Bill Dix, a Republican from Shell Rock, kissing a woman identified only as a lobbyist for various municipal groups at a Des Moines bar March 1.

Witnesses told the website that they recognized Dix — who is married with three children — from recent news of a $1.75 million settlement reached with a former communication staffer for the Iowa Senate Republicans who claimed she was fired in 2013 over her sexual harassment claims.

The 52-second clip appears to show Dix and the woman canoodling at a bar before kissing. The person who captured the intimate yet public encounter is not affiliated with a campaign or a political organization, according to the website. The report also includes photographs of Dix in what appears to be the “same black suit and white shirt combination” he wore earlier in the day at the Statehouse.

Dix, 55, did not immediately return messages seeking comment earlier Monday, but confirmed in a statement obtained by The Post that he resigned his position as state senator and majority leader as of 2 p.m. Monday. The female lobbyist, who has worked at the Statehouse for the past two years, declined comment when reached by Iowa Starting Line.

Senate President Jack Whitver said he believed Dix “made the right decision” to step down after the video surfaced online.

” … I believe he made the decision in the best interest of his family,” Whitver said in a statement. “Senate Republicans will continue to move the policies Iowans elected us to pursue.”

An election to fill Dix’s majority leader position will be held Wednesday, Whitver said.

Katie Ervin Carlson, an attorney in Iowa who handles sexual harassment and employee rights lawsuits, told the website prior to Dix’s resignation that the sexual harassment training given to legislators and staffers after the settlement was awarded to the former GOP staffer last September apparently didn’t work.

“This footage would suggest to me that the sexual harassment training was not effective, at least not for Mr. Dix,” Carlson said. “As long as men in power can continue to abuse their power without consequences, this problem will not be fixed. Someone who was afraid of the consequences of their behavior would not be doing something like that in public. That suggests to me that we’ve failed the people of Iowa in terms of fixing the problem so far.”

Carlson did not indicate whether the footage amounted to any actionable legal issues, but questioned Dix’s judgment by putting himself in such a position.

“He can abuse his power here,” Carlson told the website. “Maybe he says, ‘I’ll help you get your bill through, but now I need x, y and z’ … Even if he doesn’t ever say the words to her, it’s just inherent in the power differential that he will always have an upper hand.”

Gov. Kim Reynolds, meanwhile, told reporters during her weekly news conference before Dix resigned that she planned to discuss the matter with Dix on Monday.

“I want to know the facts,” Reynold said, according to the Des Moines Register.

Dix is a third-generation farmer who was born and raised in Iowa. He and his wife, Gerri, have three teenage children and his hobbies include sporting activities, spending time with his family and singing, according to his Senate biography.