Riley appeared as a disguise used by Tom Hardy's character in Inception (2010). Also in 2010, The Summer House was released, which starred Riley in the lead role. By the end of the first day of release, it was the number one film on iTunes worldwide and dominated that position for several days.[5][6][7] She was also cast in the film White Frog.[8]

In 2010, Riley married billionaire entrepreneur Elon Musk at Dornoch Cathedral.[11] In 2012, it was reported that they were seeking a divorce.[12] She settled for $4.2 million out of Musk's reported $2 billion net worth at the time.[13] However, in a 60 Minutes interview in 2014, they stated that they had reconciled and were living together again, along with Musk's five children from his first marriage to writer Justine Musk.[14] On December 31, 2014, the Associated Press reported that Musk had filed for divorce again.[15] In the December 31, 2014 split and pending divorce Musk agreed to give her $16 million in cash and assets.[16]