Well, that was a hell of an ending.

After months of hype and controversy, the big night arrived. The red carpet was rolled out, the votes were cast, and host Jimmy Kimmel delivered about a million best Matt Damon jokes. At last, the 89th Academy Awards arrived. And they ended with an conclusion so shocking it rivaled any in this year’s nominees. When we posted our list of winners at the beginning of the night we said there could be surprises. Little did we know how right we'd be.

That’s because Warren Beatty announced La La Land was this year’s Best Picture winner. But moments later, while the team behind La La Land were still giving their acceptance speeches, Kimmel, Beatty, and Academy Awards producers rushed the stage to say that a mistake had been made. Moonlight was, in fact, the Best Picture winner. Beatty explained that he had been given the envelope for Best Actress, which was why he’d taken such a long pause before announcing the winner.

It was a wild ending to a night that was otherwise fairly predictable. La La Land won six awards, including Best Director and Best Actress. Manchester by the Sea’s Casey Affleck topped FencesDenzel Washington in the year’s most hotly debated race. Both Supporting categories went to their predicted winners: Mahershala Ali for Moonlight and Viola Davis for Fences.

Here’s the full list of winners (at least until they reveal that actually Hacksaw Ridge won all along). Congrats to all the winners, and to the team behind La La Land for being gracious in defeat in incredible circumstances.

Best Picture
Arrival
Fences
Hacksaw Ridge
Hell or High Water
Hidden Figures
La La Land
Lion
Manchester by the Sea
Moonlight - WINNER

Best Director
Denis Villeneuve, Arrival
Mel Gibson, Hacksaw Ridge
Damien Chazelle, La La Land - WINNER
Kenneth Lonergan, Manchester by the Sea
Barry Jenkins, Moonlight

Best Actor
Casey Affleck, Manchester by the Sea - WINNER
Andrew Garfield, Hacksaw Ridge
Ryan Gosling, La La Land
Viggo Mortensen, Captain Fantastic
Denzel Washington, Fences

Best Actress
Isabelle Huppert, Elle
Ruth Negga, Loving
Natalie Portman, Jackie
Emma Stone, La La Land - WINNER
Meryl Streep, Florence Foster Jenkins

Best Supporting Actor
Mahershala Ali, Moonlight - WINNER
Jeff Bridges, Hell or High Water
Lucas Hedges, Manchester by the Sea
Dev Patel, Lion
Michael Shannon, Nocturnal Animals

Best Supporting Actress
Viola Davis, Fences - WINNER
Naomie Harris, Moonlight
Nicole Kidman, Lion
Octavia Spencer, Hidden Figures
Michelle Williams, Manchester by the Sea

Best Original Screenplay
Damien Chazelle, La La Land
Yorgos Lanthimos and Efthimis Filippou, The Lobster
Kenneth Lonergan, Manchester by the Sea - WINNER
Mike Mills, 20th Century Women
Taylor Sheridan, Hell or High Water

Best Adapted Screenplay
Luke Davies, Lion
Eric Heisserer, Arrival
Barry Jenkins and Tarell Alvin McCraney, Moonlight - WINNER
Allison Schroeder and Theodore Melfi, Hidden Figures
August Wilson, Fences

Best Cinematography
Greg Fraser, Lion
James Laxton, Moonlight
Rodrigo Prieto, Silence
Linus Sandgren, La La Land - WINNER
Bradford Young, Arrival

Best Animated Feature
Kubo and the Two Strings
Moana
My Life as a Zucchini
The Red Turtle
Zootopia - WINNER

Best Documentary Feature
Fire at Sea
I Am Not Your Negro
Life, Animated
O.J.: Made in America - WINNER
13th

Best Film Editing
Arrival
Hacksaw Ridge - WINNER
Hell or High Water
La La Land
Moonlight

Best Visual Effects
Deepwater Horizon
Doctor Strange
The Jungle Book - WINNER
Kubo and the Two Strings
Rogue One: A Star Wars Story

Best Production Design
Arrival
Fantastic Beasts and Where to Find Them
Hail, Caesar!
La La Land - WINNER
Passengers

Best Original Score
Jackie
La La Land - WINNER
Lion
Moonlight
Passengers

Best Foreign Language Film
Land of Mine (Denmark)
A Man Called Ove (Sweden)
The Salesman (Iran) - WINNER
Tanna (Australia)
Toni Erdmann (Germany)

Best Costume Design
Allied
Fantastic Beasts and Where to Find Them - WINNER
Florence Foster Jenkins
Jackie
La La Land

Best Makeup/Hairstyling
A Man Called Ove
Star Trek Beyond
Suicide Squad - WINNER

Best Original Song
“Audition (The Fools Who Dream),” La La Land
“Can’t Stop This Feeling!,” Trolls
“City of Stars,” La La Land - WINNER
“The Empty Chair,” Jim: The James Foley Story
“How Far I’ll Go,” Moana

Best Sound Editing
Arrival - WINNER
Deepwater Horizon
Hacksaw Ridge
La La Land
Sully

Best Sound Mixing
Arrival
Hacksaw Ridge - WINNER
La La Land
Rogue One: A Star Wars Story
13 Hours: The Secret Soldiers of Benghazi

Best Documentary Short
“Extremis”
“4.1 Miles”
“Joe’s Violin”
“Watani: My Homeland”
“The White Helmets” - WINNER

Best Live-Action Short
“Ennemis Interieurs”
“La Femme et le TGV”
“Silent Nights”
“Sing” - WINNER
“Timecode”

Best Animated Short
“Blind Vaysha”
“Borrowed Time”
“Pear Cider and Cigarettes”
“Pearl”
“Piper” - WINNER

More From K99