Labour MP Christian Matheson has quit after a parliamentary watchdog recommended he be suspended for "serious sexual misconduct".
Two allegations of sexual misconduct against Mr Matheson by a former member of his staff have been upheld.
The MP for Chester allegedly invited her on a private trip abroad, which was found to be "sexually motivated".
He admitted he had committed a minor breach of the code and tendered his resignation with "great sadness".
The Independent Expert Panel parliamentary watchdog had recommended the Labour MP was suspended from the Commons for four weeks.
A spokesperson for Labour said there must be a "zero tolerance for sexual harassment", adding the party acted immediately following the report findings.
According to the report, the invitation for the trip abroad "was sexually motivated, unwanted, and had placed the complainant under pressure and intimidated her".
During a work event outside Parliament, he also "linked arms with her and made personal comments about her appearance while looking at her suggestively".
The report also found he made her hold his hand as they left and insisted on accompanying her to a bus stop and once there invited her back to his flat, kissed her twice on the forehead and attempted to kiss her on the mouth.
The commissioner concluded these were all unwanted and unwelcome sexual advances.
In his resignation statement, triggering a by-election, Mr Matheson said he accepted he had committed a minor breach of the code and had hoped that "an honest and open approach" would stand him in a "fair" light.
He said: "This has proven not to be the case and I am dismayed that I have been found guilty of several allegations that I know to be untrue."
"Indeed my insistence on what I know to be true – that I had no sexual motivation in this matter – was held against me as a refusal to accept my guilt, and caused an increased sanction which I felt was disproportionate."
He said he had appealed against the four-week suspension which he believed to be "an excessive and unfair penalty" but he was now unable to "challenge the process further".
"I believe that the honourable and right thing to do now is to resign my seat and seek to rebuild my life elsewhere," he added.
"I once again apologise to the complainant in my case, for the hurt I have caused."
It is understood the Labour Party launched an investigation and immediately suspended Mr Matheson from the party membership in light of the report.
He was also asked to stand down as City of Chester MP by Labour.
A spokesperson for Labour said: "This is an incredibly serious case.
"There must be a zero tolerance for sexual harassment and the Labour party has acted immediately following the ICGS [The Independent Complaints and Grievance Scheme] findings.
"We will now select a candidate that the people of Chester can be proud to vote for."
Mr Matheson's resignation will trigger a by-election in the City of Chester.
Why not follow BBC North West on Facebook, Twitter and Instagram? You can also send story ideas to northwest.newsonline@bbc.co.uk
Crackpot views driving fracking interest, MP says
Minister and MP to discuss funding for city walls
Chancellor urged to fund city's Roman walls
Proposed splitting of city constituency condemned
Independent Expert Panel – UK Parliament
The Labour Party
Man who threw tin of dog food at girlfriend rants 'this is all lies' in court
"Heartbreaking": Readers' sadness after death of Dragons Den winner Drew Cockton
Strictly Come Dancing's Kym Marsh admits struggle of juggling two jobs
Boris Johnson pulls out of race to be next Prime Minister
Long delays next weekend as M56 closes in both directions for new £23m bridge
Light up a life for a loved one in aid of Wirral Hospice St John's
Johnson pulls out of UK Tory leadership race
Xi Jinping's party is just getting started
Ukraine denounces Russia's 'dirty bomb' claims
Hollywood reflects as new Weinstein trial begins
New ground as tech aims to help boost soil health
India celebrates Diwali with dazzling lights
New East African oil pipeline sparks climate row
'When I couldn't fix George, I climbed a mountain' Video
The cost of occupation in Kherson region
Who are the men that rule China now?
How beetroot juice is fuelling elite athletes
How the first report from Belsen shocked the world. Video
The most disgusting films ever made
How job insecurity affects your health
The word Tolkien coined for hope
© 2022 BBC. The BBC is not responsible for the content of external sites. Read about our approach to external linking.