His death, at Cedars-Sinai Medical Center, was confirmed in a family statement after he was taken off life support. Mr. Singleton had been admitted to the hospital on April 17, reportedly after having a stroke. His family said he had a history of hypertension.
His mother, Shelia Ward, said last week that he was in a coma and filed court papers asking to be appointed his temporary conservator. Several of his children at the time opposed her trying to take control of his medical and financial decision making and publicly disputed her assessment of his medical state.
“Boyz N the Hood,” a bleakly realistic film about three teenagers growing up amid gang violence in South-Central Los Angeles, established Mr. Singleton’s credentials and placed him in the conversation with more established African-American directors like Spike Lee,Bill Duke, Julie Dash, Robert Townsend and Reginald Hudlin.
“When I was 18, I saw ‘She’s Gotta Have It,’ ” Mr. Singleton said, referring to Mr. Lee’s 1986 breakthrough film, in a YouTube video in 2013. “The movie was so powerful to me, as a young black teen who grew up seeing movies with not a lot of people who looked like me.”
He was 22 when he began shooting “Boyz,” which follows Tre (played by Cuba Gooding Jr.) and his friends Ricky (Morris Chestnut) and Doughboy (Ice Cube) as they try to avoid gangs and drugs. When Ricky is shot and killed by a gang member, Doughboy, his half brother, seeks revenge, but Tre backs away from retribution.
Mr. Singleton had graduated from film school less than a year earlier. He later conceded that when he made “Boyz N the Hood” he did not yet know how to direct a film.
“As the movie was going along, I was learning how to direct,” he said after a 25th-anniversary screening of the film in Manhattan in 2016. “As it becomes more intense and comes on to the third act, the camerawork is more and more fluid, because I’m getting better and better — and taking more chances.”
John Daniel Singleton was born on Jan. 6, 1968, in Los Angeles. His mother was a pharmaceutical sales executive, and his father, Danny Singleton, was a mortgage broker. He lived with his mother until he was 11 and then moved in with his father, on whom he based the character of Tre’s father (played by Laurence Fishburne) in “Boyz.”
John was influenced early on by movies like “Cooley High” (1975), a comedy-drama about high school friends living in the projects in Chicago, directed by Michael Schultz and starring Glynn Turman and Lawrence Hilton-Jacobs.
Mr. Singleton was 7 when he saw the film with his mother. He recalled that she cried when Mr. Hilton-Jacobs’s character was killed.
“I looked at my mother and I said, ‘Why are you crying?,’ ” he said in a 2016 interview with Vanity Fair. “And she said, ‘Because it’s such a good movie.’ So I start thinking, when I get to make a movie, I got to make people cry. I got to make them feel something.”
From his mother’s apartment in Inglewood he could see films playing at the local drive-in: horror, kung fu, blaxploitation and slasher movies.
“The cinema saved me from being a delinquent,” he said.
He studied script writing at the University of Southern California’s School of Film-Television and wrote the “Boyz N the Hood” screenplay during his senior year.
He then showed it to Stephanie Allain, a script reader for two of Columbia Pictures’ top executives. At the time, he was being interviewed to succeed her. He didn’t get the job, but she loved the script and pushed for it to be acquired.
Before a deal was made, though, Mr. Singleton demanded, despite his inexperience, that he direct the film. Frank Price, the president of Columbia, agreed; he was especially impressed with Mr. Singleton’s audition tapes of Mr. Gooding and Ice Cube.
He is survived by his parents; his daughters Justice Singleton, Hadar Busia-Singleton, Cleopatra Singleton, Selenesol Singleton and Isis Singleton, and his sons, Maasai and Seven.