Famed 'Boyz n the Hood' director John Singleton dies at 51

He had suffered a stroke earlier this month.

Academy Award-nominated director John Singleton has died, his family confirmed to ABC News. He was 51.

The "Boyz n the Hood" director suffered a stroke and had been hospitalized for nearly a week.

"We are sad to relay that John Singleton has died," his family said in a statement to ABC News. "John passed away peacefully, surrounded by his family and friends."

The family had announced earlier Monday that they intended to take the director off life support today.

"This was an agonizing decision, one that our family made, over a number of days, with the careful counsel of John’s doctors," the family said in a previous statement. "It is, for us, heartbreaking ... We are grateful to his fans, friends and colleagues for the outpouring of love and prayers during this incredibly difficult time."

Singleton struggled with hypertension, according to his family.

Singleton's directorial debut of "Boyz n the Hood" earned him two Oscar nominations and made him the first African American to earn the nod for best director. He also directed "Higher Learning," "Rosewood" and "Poetic Justice."

"John loved nothing more than giving opportunities to new talent and his films came to be known for career-making roles with actors who the industry would come to embrace; talents such as Tupac Shakur, Regina King, Cuba Gooding Jr., Terrence Howard, Ice Cube, Tyrese and Taraji P. Henson," the family said.

Several friends, collaborators and colleagues posted on social media about the loss.

Iconic basketball star and businessman Magic Johnson wrote, "John is admired for putting a lot of people of color to work throughout his career. Our prayers are with his children and family members. He will be sorely missed."

Sam Jackson added, "He blazed the trail for many young film makers, always remaining true to who he was & where he came from!!! RIP Brother. Gone Way Too Soon!"

Fellow director Jordan Peele added, "RIP John Singleton. So sad to hear. John was a brave artist and a true inspiration. His vision changed everything."

Singleton is survived by his mother, Sheila, his father, Danny and his six children.

ABC News' Christina Carrega contributed to this report.