NEW YORK: Moonlight has won best picture at the Oscars - but only after Faye Dunaway initially announced La La Land had won.

Dunaway's co-presenter Warren Beatty said "Emma Stone, La La Land" had been written in the envelope he was given. The team from La La Land were in the middle of their acceptance speeches when the mistake was discovered.

Moonlight director Barry Jenkins said: "I don't think my life could be changed any more dramatically than it has in the last 20 or 30 minutes."

His coming-of-age film about a young gay black man also won adapted screenplay and best supporting actor.

La La Land won six Oscars including best actress for Emma Stone. Damien Chazelle, director of La La Land, became the youngest filmmaker to win a best director Oscar, at the age of 32.

Bonnie and Clyde stars Beatty and Dunaway announced La La Land had taken the best picture prize - but then the musical's producer Jordan Horowitz announced there had been a mistake.

He said: "This is not a joke. Moonlight is best picture," and showed the camera the card that revealed the winner.

Two La La Land producers had already given their acceptance speeches before the mistake was revealed.

Host Jimmy Kimmel joked that he knew he would he would mess up compering the ceremony, and added: "Personally I blame Steve Harvey for this," referring to Harvey's mistake in announcing the Miss Universe winner in 2015.