Margot Robbie revealed a boozy behind-the-scenes moment with her "The Wolf of Wall Street" costar Leonardo DiCaprio.

During a special guest appearance at the British Academy of Film and Television Arts event, the Australian actress confessed she needed a bit of liquid courage before filming a raunchy nude scene with the Oscar winner. 

"I’m not going to lie, I had a couple of shots of tequila before that scene because I was nervous…very, very nervous," Robbie said. 

MARGOT ROBBIE SAYS ACTING CAREER ALMOST ENDED AFTER 'THE WOLF OF WALL STREET'

The now 32-year-old actress continued to explain how she prepared for the famous X-rated scene, as she played the character Naomi Lapaglia more than a decade ago, when she was just 22 years old.

Leonardo DiCaprio Margot Robbie

Margot Robbie revealed a boozy behind-the-scenes moment with her "The Wolf of Wall Street" costar Leonardo DiCaprio. (Getty Images)

"Honestly, I know it sounds silly now, knowing how big the movie became, at the time I thought, ‘No one is going to notice me in this film,'" Robbie noted, according to the Daily Mirror.

HOW DID MARGOT ROBBIE GET FAMOUS? A LOOK AT THE ‘SUICIDE SQUAD’ STAR'S CAREER AND PERSONAL LIFE

"It kind of doesn’t matter what I do in this film because everyone is going to be focused on Leo [DiCaprio] and everything," she added.

MARGOT ROBBIE SAYS HER FEMALE-FRONTED ‘PIRATES OF THE CARIBBEAN’ MOVIE IS DEAD AT DISNEY

Despite the 2013 movie being Robbie’s breakthrough role amid her rise to fame, she questioned if she wanted to continue being an actress after working on the film.

Margot Robbie Leonardo DiCaprio at The Wolf of Wall Street premiere

Margot Robbie explained how she prepared for the famous X-rated scene, as she played the character Naomi Lapaglia more than a decade ago at just 22 years old. (Getty Images)

The "Suicide Squad" star recently got candid about her acting career and said after working on "The Wolf of Wall Street," she debated calling it quits with Hollywood.

CLICK HERE TO SIGN UP FOR THE ENTERTAINMENT NEWSLETTER

Jonah Hill Margot Robbie Leonardo DiCaprio

Jonah Hill, left, Margot Robbie and Leonardo DiCaprio, right, attend the U.K. premiere of "The Wolf Of Wall Street." (Getty Images)


 

"Something was happening in those early stages, and it was all pretty awful," Robbie recalled to Vanity Fair.

CLICK HERE TO GET THE FOX NEWS APP

"And I remember saying to my mom, ‘I don’t think I want to do this,' and she just looked at me, completely straight-faced, and was like, ‘Darling, I think it’s too late not to.' That's when I realized the only way was forward," Robbie continued.

Martin Scorsese's "The Wolf of Wall Street" film also featured actors Jonah Hill and Matthew McConaughey.