It was Hollywood's biggest night on Sunday, and its most memorable moment took place as the event came close to wrap-up.
African-American coming-of-age tale Moonlight won the Oscar for best picture on Sunday, but not before La La Land was erroneously announced as the winner of the top prize.
In a mishap that caused uproar and confusion, presenters Warren Beatty and Faye Dunaway initially announced that the romantic musical "La La Land" had won. As the casts of both films stood awkwardly on stage, Beatty explained he had been given the wrong envelope to open. “I want to tell you what happened. I opened the envelope and it said, “Emma Stone, ‘La La Land.’”
It was the first time in living memory that such a major mistake had been made at the Academy Awards, Hollywood's biggest night.
"Is that the craziest Oscar moment of all time?" Stone, who won the best actress Oscar for her La La Land role as a struggling actress, told reporters backstage "It's a very strange happening for Oscar history."
Also read: The Oscars announced the wrong Best Picture and Twitter is losing it
La La Land went into the Oscars with a leading 14 nominations and emerged with six, including for its score and theme song 'City of Stars'.
La La Land director Damien Chazelle, 32, became the youngest person to ever win a best director Oscar.
Manchester by the Sea star Casey Affleck was named best actor "Man, I wish I had something better and more meaningful to say...I'm just dumbfounded that I'm included," said Affleck, a first-time Oscar winner.
Affleck came through despite 2010 sexual harassment allegations that resurfaced during awards season. Affleck denied the allegations which were settled out of court.
Viola Davis and Mahershala Ali won their first Oscars for their supporting roles in African-American stories Fences and Moonlight, in stark contrast to the 2016 Academy Awards when no actors of color were even nominated.
Here's the full list of winners:
"Arrival"
"Fences"
"Hacksaw Ridge"
"Hell or High Water"
"Hidden Figures"
"La La Land"
"Lion"
"Manchester by the Sea"
"Moonlight" (WINNER)
Isabelle Huppert in "Elle"
Ruth Negga in "Loving"
Natalie Portman in "Jackie"
Emma Stone in "La La Land" (WINNER)
Meryl Streep in "Florence Foster Jenkins"
Casey Affleck in "Manchester by the Sea" (WINNER)
Andrew Garfield in "Hacksaw Ridge"
Ryan Gosling in "La La Land"
Viggo Mortensen in "Captain Fantastic"
Denzel Washington in "Fences"
Jeff Bridges in "Hell or High Water"
Mahershala Ali in "Moonlight" (WINNER)
Lucas Hedges in "Manchester by the Sea"
Dev Patel in "Lion"
Michael Shannon in "Nocturnal Animals"
Nicole Kidman in "Lion"
Viola Davis in "Fences" (WINNER)
Naomie Harris in "Moonlight"
Octavia Spencer in "Hidden Figures"
Michelle Williams in "Manchester by the Sea"
"Kubo and the Two Strings"
"Moana"
"My Life as a Zucchini"
"The Red Turtle"
"Zootopia" (WINNER)
"Arrival"
"La La Land" (WINNER)
"Lion"
"Moonlight"
"Silence"
"Allied"
"Fantastic Beasts and Where to Find Them" (WINNER)
"Florence Foster Jenkins"
"Jackie"
"La La Land"
"Fantastic
"Fire at Sea"
"I Am Not Your Negro"
"Life, Animated"
"O.J.: Made in America" (WINNER)
"13th"
"Extremis"
"4.1 Miles"
"Joe's Violin"
"Watani: My Homeland"
"The White Helmets" (WINNER)
"Arrival"
"Hacksaw Ridge" (WINNER)
"Hell or High Water"
"La La Land"
"Moonlight"
"Land of Mine"
"A Man Called Ove"
"The Salesman" (WINNER)
"Tanna"
"Toni Erdmann"
"A Man Called Ove"
"Star Trek Beyond"
"Suicide Squad" (WINNER)
"Jackie"
"La La Land" (WINNER)
"Lion"
"Moonlight"
"Passengers"
"Audition (The Fools Who Dream)" from "La La Land"
"Can't Stop The Feeling" from "Trolls"
"City Of Stars" from "La La Land" (WINNER)
"The Empty Chair" from "Jim: The James Foley Story"
"How Far I'll Go" from "Moana"
"Arrival"
"Fantastic Beasts and Where to Find Them"
"Hail, Caesar!"
"La La Land" (WINNER)
"Passengers"
"Blind Vaysha"
"Borrowed Time"
"Pear Cider and Cigarettes"
"Pearl"
"Piper" (WINNER)
"Ennemis Intérieurs"
"La Femme et le TGV"
"Silent Nights"
"Sing" (WINNER)
"Timecode"
"Arrival" (WINNER)
"Deepwater Horizon"
"Hacksaw Ridge"
"La La Land"
"Sully"
"Arrival"
"Hacksaw Ridge" (WINNER)
"La La Land"
"Rogue One: A Star Wars Story"
"13 Hours: The Secret Soldiers of Benghazi"
"Deepwater Horizon"
"Doctor Strange"
"The Jungle Book" (WINNER)
"Kubo and the Two Strings"
"Rogue One: A Star Wars Story"
"Arrival"
"Fences"
"Hidden Figures"
"Lion"
"Moonlight" (WINNER)
"Hell or High Water"
"La La Land"
"The Lobster"
"Manchester by the Sea" (WINNER)
"20th Century Women"