Julia Louis-Dreyfus opened up about working with "Sopranos" star James Gandolfini on one of his final films before his death in June 2013 at the age of 51.

The 62-year-old actress starred opposite the late actor in the 2013 romantic comedy "Enough Said," in which they played a pair of divorcees who fall in love. 

Louis-Dreyfus, who had never met Gandofini prior to filming the movie, recalled how he was very different from the ruthless mob boss he portrayed for six seasons on the hit HBO series.

"He was a teddy bear," the "Seinfeld" alum told Vanity Fair in an interview published Wednesday.

JULIA LOUIS-DREYFUS REFLECTS ON ‘GRIEF’ WHEN ‘SEINFELD’ ENDED

james gandolfini and julia louis-dreyfus embracing

Julia Louis-Dreyfus remembered the late James Gandolfini as a "teddy bear" when they co-starred in the 2013 movie "Enough Said." (FilmMagic/FilmMagic)

"He was a tender guy, and so I’m very happy that he made this film."

"Not only because I got to work with him," Louis-Dreyfus added. "But the public got to see him not as a mafia boss, but as somebody closer to himself — who was very vulnerable and very kind-hearted." 

From 1999 to 2007, Gandolfini played Tony Soprano, the conflicted head of the New Jersey-based DiMeo crime family. Soprano became Gandolfini's best-known role, and the actor won three Emmy Awards and a Golden Globe, among other accolades, for his performance.

james gandolfini as tony soprano

Gandolfini played mob boss Tony Soprano on the hit HBO series "The Sopranos" for six seasons from 1999 to 2007. (Anthony Neste/Getty Images)

During her interview with Vanity Fair, Louis-Dreyfus praised her late co-star's acting ability, and she compared him to "The Godfather" star Marlon Brando.

"I would suggest that one of the reasons, among many, that he was so good at Tony Soprano was that that vulnerability was in place," the "Veep" star noted. "That made his character much more complicated and interesting to watch."

Gandolfini died of a heart attack during a family vacation in Rome. 

"Enough Said," which was directed by Nicole Holofcener and also starred Catherine Keener, Toni Collette and Ben Falcone, was released three months after Gandolfini's death.

julia louis-drefus nicole holofcener at screening of enough said

"Enough Said," directed by Nicole Holofcener, was dedicated to Gandolfini's memory. (David Buchan/Getty Images For TheWrap)

"Enough Said" premiered at the Toronto International Film Festival in September 2013 before being released in theaters later that month. In an interview with the Los Angeles Times ahead of the premiere, Louis-Dreyfus reflected on how quickly she bonded with Gandolfini.

CLICK HERE TO SIGN UP FOR OUR ENTERTAINMENT NEWSLETTER

"I liked him right away," she said. "What was so fascinating to me immediately was that he’s a very mild, dear, thoughtful fellow, very much like the character he plays in the film. He isn’t like Tony Soprano at all, even though he sure looks like Tony Soprano."

Louis-Dreyfus told the outlet she was having a difficult time coming to terms with Gandolfini's sudden death.

julia louis-dreyfus and james gandolfini smiling at emmys party

Louis-Dreyfus told the Los Angeles Times that she was "so happy" audiences were able to see the gentler side of Gandolfini in the movie. (FilmMagic/FilmMagic)

"It was just brutal, just brutal," she said. "And very, very sad."

The 11-time Emmy Award winner remembered Gandolfini was initially apprehensive about taking on the role of kind-hearted librarian Albert.

CLICK HERE TO GET THE FOX NEWS APP

"Jim was so nervous," Louis-Dreyfus said, "because it was outside his comfort zone in a way. But he’s extraordinary in it. I’m so happy people are going to see this aspect of him. It’s a gorgeous performance." 

Both Gandolfini and Louis-Dreyfus were widely praised by critics for their performances in "Enough Said," with the actress earning her first Golden Globe nomination for a film role. The movie was dedicated to Gandolfini's memory.