Robert De Niro's grandson, Leandro De Niro Rodriguez, died from an accidental drug overdose, according to New York's Office of the Chief Medical Examiner.

His cause of death was due to the "toxic effects of fentanyl, bromazolam, alprazolam, 7-aminoclonazepam, ketamine, and cocaine," according to the medical examiner.

Rodriguez's manner of death was ruled an accident.

WOMAN TIED TO SUSPECTED FENTANYL DEATH OF ROBERT DE NIRO'S GRANDSON ARRESTED

robert de niro grandson leandro robert de niro

Leandro De Niro Rodriguez, the grandson of Robert De Niro, died of an accidental overdose July 2 in New York City. He was 19. (Drena De Niro Instagram/Getty)

Sofia Haley Marks, 20, was arrested in connection with Rodriguez's death in July.

Marks allegedly sold Rodriguez drugs before he was found dead July 2 in his Manhattan apartment. 

ROBERT DE NIRO'S DAUGHTER POSTS TRAGIC TRIBUTE TO HER 19-YEAR-OLD SON: ‘YOU DIDN’T DESERVE TO DIE LIKE THIS'

She appeared in a Manhattan federal court two weeks later on three federal narcotics charges and agreed to remain behind bars until she requests bail at a later date.

Actor Robert De Niro sits next to his daughter Drena

Robert De Niro adopted daughter Drena when he was married to Drena's mother, Diahnne Abbott. (Dimitrios Kambouris)

APP USERS CLICK HERE TO VIEW INSTAGRAM POST

Prosecutors said they would oppose a request for her release.

ROBERT DE NIRO ATTENDS FUNERAL SERVICE FOR GRANDSON LEANDRO, 19, IN NEW YORK CITY

Leandro is the son of Robert De Niro's oldest daughter, Drena. Drena, 51, is the daughter of Diahnne Abbott. 

De Niro adopted Drena when he and Diahnne married in 1976. They divorced 12 years later in 1988. 

Drena mourned the loss of her son on social media shortly after his death. 

APP USERS CLICK HERE TO VIEW INSTAGRAM POST

"None of this is right or fair and my heart hurts in a way I never knew possible while still breathing and barely functioning," she wrote. "Leo my darling I love you today like the first day I held you in my arms."

Drena, an actress and filmmaker, worked alongside her son in multiple projects, including "A Star is Born."

CLICK HERE TO SIGN UP FOR THE ENTERTAINMENT NEWSLETTER

"I’m deeply distressed by the passing of my beloved grandson Leo. We’re greatly appreciative of the condolences from everyone. We ask that we please be given privacy to grieve our loss of Leo," the Academy award-winning actor said in a statement shared with Fox News Digital.

Robert De Niro with his eldest daughter Drena, on the red carpet looking away from the camera at the Hollywood Film Awards

De Niro said he was "deeply distressed by the passing of my beloved grandson Leo." (Frank Trapper/Corbis)

Drena added on social media, "The same man that picked us up from the hospital when you were born drove us to the funeral home where I touched and held you for the last time."

"You were kindness acceptance and love and I can’t believe any of this is real YOU made everything bearable and every burden lighter. You didn’t deserve to die like this but I can only believe that God needed a strong powerful angel in their army." 

She wrote, "I’m holding you every second of every moment [in] my heart and memories until I’m with you again. My heart is broken forever. Me daddy and your family love you, I love I love you with every beat of my crying heart."

CLICK HERE TO GET THE FOX NEWS APP

The Associated Press contributed to this report.