All was going great at the 89th Annual Academy awards.
Host Jimmy Kimmel made sure the laughs kept coming, we heard some good speeches from the winners and the goodies that kept falling from the 'skies' looked very good too!
All was well until the Best Picture was announced. And then the slip-up happened.
Here's a minute-to-minute account of what happened.
Faye Dunaway and Warren Beatty take center stage to announce the Best Picture award.
Warren Beatty takes a look at the card twice. Did something look a bit wrong there?
And the Oscar goes to... La La Land!
Producers Jordan Horowitz, Fred Berger and Marc Platt come on stage to accept the awards and make their acceptance speeches.
But wait, there seems to be some confusion.
Warren Beatty and Jimmy Kimmel have a quick discussion with Jordan Horowitz, the producer of La La Land.
All celebrations cease, as Horowitz takes to the mike to announce they have *not* won. The winner, in fact, is Moonlight!
Emma Stone is shattered.
Yes, the Best Picture goes to Moonlight.
*Moonlight.*
Take a closer look.
C-l-o-s-e-r.
No, it was not a joke.
Warren Beatty explains why the mistake happened. He said he had an envelope saying Emma Stone, La La Land.
He added that he was surprised and turned to his co-presenter Faye Dunaway before looking quizzically at the audiences.
Horowitz hands over the award to the real winner of the night: Moonlight writer/director Barry Jenkins.
He remains very sporting about it and offers Barry a warm hug.
Ryan Gosling congratulates Mahershala Ali.
Emma Stone offers her congratulations too.
The Moonlight team are still shocked from their surprise win but they accept their award happily.
Watch the drama unfold.
PIX: Sunny Pawar's day at the Oscars!
Oscars 2017: Moonlight wins Best Film
Oscars 2017: Like Priyanka Chopra's outfit? VOTE!
Oscars 2017: Like host Jimmy Kimmel? VOTE!
Oscars 2017: Taraji P Henson, Charlize Theron walk the red carpet