Michael Gove has apologised "unreservedly" after making a joke about Harvey Weinstein on BBC Radio 4's Today programme.
The environment secretary compared being interviewed by presenter John Humphrys with going into Harvey Weinstein's bedroom.
He added: "You just hope you emerge with your dignity intact."
Mr Gove faced a backlash, including from fellow MPs, before tweeting it had been a "clumsy attempt at humour".
He added: "It wasn't appropriate. I'm sorry and apologise unreservedly."
Apologies for my clumsy attempt at humour on R4 Today this morning -it wasn't appropriate. I'm sorry and apologise unreservedly— Michael Gove (@michaelgove) October 28, 2017
Weinstein has been accused of rape, sexual assault and harassment by a number of actresses and employees, with many of the incidents alleged to have taken place in hotel rooms.
He insists any sexual relations he had were consensual.
Mr Gove's apology comes after he was widely criticised for the comments, with Labour MP Jess Phillips saying the remarks were undignified and Lib Dem's Jo Swinson told him not "trivialise sexual assault."
Michael Gove just left the studio without his dignity— Jess Phillips (@jessphillips) October 28, 2017
'Not a laughing matter'
Mr Gove and former Labour leader Neil Kinnock were being interviewed at 08:10 BST - a slot usually reserved for the most important political guests of the day.
In a twist to the usual format, he and Lord Kinnock were asked what they thought of the show and its interviewers.
Mr Gove said: "Sometimes, I think coming into the studio with you John is a bit like going into Harvey Weinstein's bedroom."
As some laughter and applause was heard from the audience at Wigmore Hall in central London, Lord Kinnock added: "John goes way past groping."
Mr Gove then said: "You just hope you emerge with your dignity intact."
Women being abused and raped is not a laughing matter. And it doesn’t make us ‘humourless’ to say so. https://t.co/zWXWAdVWmz— Nicola Sturgeon (@NicolaSturgeon) October 28, 2017
Scotland's First Minister Nicola Sturgeon said such issues were "not a laughing matter", and Labour MP Stella Creasy referred to similar jokes made by chat show host James Corden, describing them as "crass".
Green Party peer Lady Jones said Mr Gove's comments were "ridiculous", but noted: "A lot of people were laughing. Now, some of that might have been shocked laughter [...] but there is absolutely nothing funny about it."
A journalist in the audience for the recording, to mark the Today programme's 60th anniversary, also said that despite the fact some people laughed, others had a "look of disgust".
While there was laughter in Today audience after Michael Gove's comment, others around me sat blank-faced or with a look of disgust— Graham Ruddick (@GrahamtRuddick) October 28, 2017
Presenter and journalist Lucy Siegle said Mr Gove had "ruined" the birthday edition of the show.
Your ‘joke’ suggests your instinct is to undermine victims & to minimise impact of sexual assaullt. Plus you ruined @BBCr4today birthday.— lucy siegle (@lucysiegle) October 28, 2017
And LBC presenter Shelagh Fogarty said the comments were in "poor taste".
Oh dear dear me Michael Gove misses the mark with Weinstein remarks @BBCr4today - such poor taste. Can’t buy class.— Shelagh Fogarty (@ShelaghFogarty) October 28, 2017
Mr Humphrys had started the segment saying that politicians invited on the show can be, inadvertently, made to look "silly" or "contemptible in some way".
Following his Weinstein remarks, Mr Gove went on to say: "The broader point is that you can make a fool of yourself."
The comments come on the day Labour leader Jeremy Corbyn is to talk about the issue of abuse, saying MPs who abuse or sexually harass women must be "held to account".
Downing Street has described allegations of sexual harassment in politics as "deeply concerning".