Hugh Grant was dating Elizabeth Hurley when he was arrested for a sex act in 1995. (Photos: NYI collage)

Hugh Grant and Elizabeth Hurley were a Hollywood dream couple in 1995 when Grant was arrested for engaging in a sex act on Sunset Boulevard with a transsexual prostitute.

The huge scandal was seemingly unexplainable–until now.

Grant finally opened up about his sexual liaison and explained how it all went down. He said he was “not in a good frame of mind” about his acting.

Now 60, Grant says a chain of events led him to get in the car with prostitute Divine Brown. He said he was depressed by his “atrocious” acting in the movie “Nine Months,” which was just about to be released.

The movie also starred Julianne Moore, Robin Williams and Jeff Goldblum, turned out to be a box office success, grossing $138.5 million worldwide.

But after attending a screening of the comedy Grant thought otherwise. The British actor decided to drown his sorrows and that eventually led to his liaison with Divine.

“I was about to launch my first Hollywood film – my timing was impeccable. My problem was – that was my first Hollywood film and I’d just been to see it,” he told Marc Maron on the podcast “WTF.”

” I had a bad feeling about it. I went to see a screening. Everyone in it was brilliant, but I was so atrocious that I was not in a good frame of mind.

“I had a Ken Russell kind of lunch – and one thing led to another. I just was disappointed in myself. “I don’t know what was going on.”

The incident, which resulted in his arrest for lewd conduct, humiliated Hurley. Yet, the British actress maintained a stiff upper lip. They stayed together for five more years. They remain close.

Hugh pleaded no contest to the charge and was fined $1,180, placed on two years’ probation by Judge Robert J Sandoval and ordered to complete an AIDS education program.

Hugh was also praised for not making any excuses for his actions when he was quizzed on the incident on several US talk shows, including ‘The “Tonight Show with Jay Leno” and “Larry King Live.”

When Leno asked him “what the hell were you thinking?” Grant answered: “You know in life what’s a good thing to do and a bad thing to do. I did a bad thing.”