The 'What's My Name?' singer reached the age on Sunday (20.02.11) and after performing at the NBA All-Star Game in Los Angeles she celebrated with friends at a private residence in Beverly Hills.
The two hip-hop legends were among the star-studded guests and gave impromptu renditions of some of their biggest hits.
Partygoers were treated to food inspired by Rihanna's Caribbean heritage such as oxtail and plantains and red velvet cupcakes adorned with the Barbados flag.
According to People, Jay-Z - who signed the pop beauty - spent most of the night talking and "laughing" with Mary J. and Rihanna gave huge hugs to Ryan and Zac when she saw them.
Earlier, the singer had wowed the crowd at the NBA All-Star game at the Los Angeles' Staples Centre.
Dressed in a very revealing silver and black dress, she performed a number of hits, including 'Rude Boy', 'Only Girl (In The World)' and 'S&M', and was joined onstage by Drake for a rendition of 'What's My Name?' and Kanye West for a version of 'All of The Lights'.
Rihanna revealed her excitement about hey big day on her twitter page, writing: "Go grawl, its ya birthday, ITS PARTY TIME! All my bestfriends are here!!!! And my BRO!! Wish u cud see how SICK this s**t is!!! (sic)"