(CNN) It was lost in the confusion of the Oscar envelope snafu, but "Moonlight" made history.
The coming-of-age drama about a gay black man growing up in Miami became the first film with an all-black cast to win the Academy Award for best picture.
The movie, whose cast includes best supporting actor winner Mahershala Ali, Naomie Harris, Trevante Rhodes and Janelle Monáe, has been a critical darling during awards season.
With the win, it shattered a glass ceiling for black films.
"Very clearly, even in my dreams this could not be true," director Barry Jenkins said in amazement when it was announced that "Moonlight," not "La La Land," had won. "But to hell with dreams, I'm done with it, 'cause this is true. Oh my goodness."
In 2014, "12 Years a Slave" won best picture, but its cast was not all black. Both "Moonlight" and "12 Years" were produced by Brad Pitt's Plan B company. "Moonlight" made Oscar history in other ways.
Ali, who played a sympathetic drug dealer who mentors a bullied young man, is the first Muslim actor to win best supporting actor.
Oscars 2017: The winners list
Jenkins became the first African American to score nominations for best director, best picture and best adapted screenplay in the same year. The film's co-editor, Joi McMillon, became the first African American to earn a nomination for achievement in film editing.
The "Moonlight" win came in a year in which the Academy has been hailed for more diversity.
White actors had especially dominated the major acting categories for two years, giving rise to the #OscarsSoWhite hashtag. This year, seven of the 20 nominees were people of color.
Read full report at CNN