Leonardo DiCaprio and Brad Pitt discuss all things “Once Upon a Time In Hollywood” in a new interview with Esquire.

The pair join the film’s director Quentin Tarantino for the interview with the magazine ahead of the film’s Cannes premiere on Tuesday, with DiCaprio talking all about working with Pitt.

He explains, “In a weird way, when we were doing the movie, my relationship with Brad clicked. It was very early on where he improvised a line and it changed everything.”

“In the scene, as it was written, I’m coming to set hungover. And I am basically getting my fate handed to me, discovering what my future is going to be in this industry. And I’m really down. And in the scene, Brad ad-libs; he just comes out with this line, he looks at me and says, ‘Hey, you’re Rick f**king Dalton. Don’t you forget that.’”

View this post on Instagram

via @jayfielden: As we speak, Quentin Tarantino’s ninth film, “Once Upon a Time in…Hollywood”—a magnum opus with a cast of casts—is debuting at Cannes. The movie, which is set in 1969, inspired us to collaborate with the director and his two leading men on a cover that captures the look and feel of the great Esquire covers of the same era. The entire issue, in fact, taps the Spirit of ‘69—the style, the vibe, even some of the magazine’s own history—to reflect, a half century later, on 2019. To get the special issue, you’ll have to wait for it to hit newsstands officially on June 4th. But to read @michael_hainey’s exclusive Q&A with @leonardodicaprio, Quentin Tarantino, and Brad Pitt, click the link in our bio. Casting by @emilypoenisch // photos by @alexilubomirski // styling by @matthew_marden // design by @raul_a_aguila // editing jeuje by @brucehandy // photo direction @justinoneill & @alixbcampbell // @sonypictures // @festivaldecannes

A post shared by Esquire (@esquire) on

DiCaprio plays faded television actor Dalton in the film, with him and his stunt double (Cliff Booth, played by Pitt) striving to achieve fame and success during the final years of Hollywood’s Golden Age in 1969.

RELATED: Leonardo DiCaprio Is A Hollywood Has-Been In New Trailer For Tarantino’s ‘Once Upon A Time In Hollywood’

Pitt adds, “Doing this with Leo was really cool and a rare opportunity. Then there was just the whole thing, where we all grew up with the lore of the lead actor and his stuntman. That relationship and craft.”

“I mean, there are epic stories of these duos: Burt Reynolds had Hal Needham. Steve McQueen had Bud Ekins. Kurt Russell had his guy. Harrison Ford had his. These guys were partners for decades. And it’s something that is not the same in our generation, as the pieces became more movable.”

RELATED: Jack Perry Opens Up About Working With His Dad Luke Perry In ‘Once Upon A Time In Hollywood’

DiCaprio continues to say of the industry, “My attitude is the same as when I started. When I talk to these two guys [Pitt and Tarantino], it’s like, we know we were given that one shot and we do not want to disrespect that opportunity, which is why we’re just trying the damn best we can to make the best things we can.”

“Because we understand that it is fleeting. Tastes change; culture changes. And I feel very blessed to have gotten that ticket to be able to do movies. So I feel very connected to that 15-year-old kid who got his first movie. And that hasn’t changed.”