HOLLYWOOD, CA - MARCH 02: Actress Lupita Nyong'o accepts the Best Performance by an Actress in a Supporting Role award for '12 Years a Slave' onstage during the Oscars at the Dolby Theatre on March 2, 2014 in Hollywood, California. (Photo by Kevin Winter/Getty Images)2014 Getty Images

Lupita Nyong’o was just finishing up her degree at Yale when she was cast to play a slave who has caught the eye of her sadistic master in the critically acclaimed and now Oscar-winning “12 Years A Slave.”

Over the last several months, Nyong’o has become a household name as an up-and-coming actress in Hollywood and she solidified her place in history by taking home the best supporting actress statute Sunday night at the 86th annual Academy Awards.

“It doesn’t escape me for one moment that so much joy in my life is due to so much pain in someone else’s,” the 31-year-old said during her acceptance speech. “And so I want to salute the spirit of Patsey, for her guidance.”

Nyongo’s win is getting praise from fans around the world, including her native countries of Mexico and Kenya.

“You are the pride of Africa,” Kenya’s president Uhuru Kenyatta exclaimed on Twitter, celebrating Kenya’s first major Oscar win.

At a conference at the United Nations headquarters in Nairobi, Wanjira Maathai — the daughter of the late Kenyan Nobel Prize winner Wangari Maathai — praised Nyong’o as a Kenyan who has reached great heights.

"She (Nyong'o) attributes to her success to a lot of other black actresses who made her believe she could be something and that she could make it in film," Maathai said. "And I think it's so important to have role models, so important to have people who you can say, 'Ah, if she made it, maybe I can too.'"

But she's just as highly regarded heroine in her adopted country, Mexico.

The actress, who also appears in the new film “Non-Stop,” was born in Mexico City when her father was a visiting lecturer in political science at El Colegio de Mexico.

While she only lived in the Latin American country for three years before moving back to Kenya, Nyong’o said Mexico is just a part of her as is the African nation that saw her grow up.

“I am Mexican and Kenyan at the same time,” she said on the red carpet. “I have seen that they are fighting over my nationality, but I insist I am Mexican-Kenyan and I am fascinated by tacos with roasted meat.”

In taking her statuette, Nyong’o beat out stiff competition from previous Oscar winners Jennifer Lawrence and Julia Roberts, as well as fellow first-time nominees Sally Hawkins and June Squibb.