Kim Kardashian says she was on ecstasy when she filmed her sex tape — and during her first wedding

Kim Kardashian revealed she was high on ecstasy during several notable moments in her past.

The reality star admitted on Sunday’s episode of “Keeping Up with the Kardashians” that she used the party drug before her first wedding, as well as when she filmed her notorious sex tape with Ray J.

“I did ecstasy once and I got married,” Kardashian told Kendall Jenner and Scott Disick. “I did it again, I made a sex tape. Like, everything bad would happen.”

The revelation was met with disbelief, with Disick quickly questioning, “You were high on ecstasy when you made that sex tape?”

Kardashian then responded that “everybody knows it.”

“Like, my jaw was shaking the whole time,” she said.

The reality star, 38, filmed the video with Ray J — her boyfriend at the time — in 2003, and it was later leaked to the public in 2007. The leak of the video led to a new level of fame for Kardashian.

Her first marriage, meanwhile, took place in 2000, when she tied the knot with music producer Damon Thomas. They divorced in 2004.

Kardashian — who is now married to Kanye West and has three kids with the rapper — also recalled a time she and Paris Hilton slept on rafts in the ocean after partying until the early morning in Ibiza.

“I definitely went through a wild phase, I would say in my late teens,” Kardashian went on to explain in a testimonial to the camera. “I’m not like that anymore. But I still have fun. Don’t get it twisted, I’m always the life of the party.”

Advertisement