The film is based on the 1853 memoir of Solomon Northup, a free black man who was kidnapped and sold into slavery. Director Steve McQueen dedicated the award to those who suffered slavery and "the 21 million people who still suffer slavery today."
"Everyone deserves not just to survive, but to live," McQueen said. "This is the most important legacy of Solomon Northup."
"Gravity" won the most awards, cleaning up in technical categories like cinematography and visual effects. In total, it earned seven Oscars, including best director for Mexican filmmaker Alfonso Cuaron, who became the category's first Latino winner.
Matthew McConaughey won the best actor Oscar for his role in "Dallas Buyers Club," while Cate Blanchett won the best actress Oscar for "Blue Jasmine." Accepting the award, Blanchett challenged Hollywood not to think of films starring women as "niche experiences."
"The world is round, people," she said to applause.
Lupita Nyong'o gave a moving speech as she accepted the Oscar for best supporting actress for "12 Years A Slave."
"It doesn't escape me for one moment that so much joy in my life is thanks to so much pain in someone else's," she said. "It has been the joy of my life."
It was her first Oscar nomination and win.
"I am certain that the dead are standing about you and watching, and they're grateful, and so am I," Nyong'o said to McQueen.
The first award of the night went to Jared Leto for best supporting actor in "Dallas Buyers Club."
"Incredible," Leto said as he took the stage. It was also his first Oscar nomination and win.
He plays a transsexual in the Texas AIDS drama starring Matthew McConaughey. Leto dedicated the award to his mother, a "high school dropout and a single mom" who made a better life for herself and her children.
"She encouraged her kids to be creative, to work hard, and to do something special," Leto said. "Thank you for teaching me to dream."
Disney's "Frozen" won best animated film, marking the studio's first win in the 14 years of the best animated feature category. The film's "Let It Go" won best original song.
The 86th Oscars kicked off with a hilarious opening monologue by host Ellen DeGeneres, who teased Jennifer Lawrence for falling last year while accepting her Oscar, and then falling again Sunday on the red carpet.
"If you win tonight, I think we should bring you the Oscar," said DeGeneres to Lawrence, who had been nominated for best supporting actress for "American Hustle."
DeGeneres also got big laughs from the crowd when she said to Jonah Hill, "You showed us something in that film that I have not seen for a very, very long time," alluding to his nude scene in "Wolf of Wall Street." She also had pizza delivered and gathered stars to snap a selfie that almost immediately set a record for most retweeted image on Twitter.
After a torrential downpour swept through Los Angeles over the weekend, Oscar crews scrambled to get ready for the glamorous award show. As skies began to clear, the red carpet was uncovered for arrivals.
Lawrence arrived in a red hot Dior dress, while Nyong'o looked stunning in a light blue Prada gown with a deep V-neck top. She said the color reminded her of her Kenyan home.
"I'm living a dream," she told ABC7 Entertainment Guru George Pennacchio. "I'm looking forward to what's going to come after this."
The Associated Press contributed to this report.