The "Work" singer took a break from her ANTI tour over the weekend to perform at the Coachella music festival in Indio, California.
The 28-year-old singer took to the stage during deejay Calvin Harris' set on Sunday, Billboard reports.
Rihanna wore jeans, a crop top and a red, white and blue jacket with tassels as she performed "We Found Love," her 2011 collaboration with Harris, according to Billboard.
Harris' girlfriend Taylor Swift posted a video clip of the surprise performance on Instagram, writing, "I'll NEVER forget this moment."
A video uploaded to Twitter showed Rihanna and Swift sharing a hug at the event.
The star is slated to begin the Canadian stretch of her ANTI tour on Monday with a performance in Winnipeg.
Rihanna was a simple concert-goer just one day earlier and was spotted enjoying the celebrity-filled festival with Oscar winner Leonardo DiCaprio.
Kevin Mazur / Getty Images for Coachella
The two were seen at Neon Carnival, an event near the annual desert music festival presented by Levi's in Thermal, California.
"Leo slipped into the party incognito and was dancing and singing to 'No Scrubs,' " a source told PEOPLE, adding that the pair didn't look romantic. "He knew every word! A couple tables over Rihanna was dancing with a couple girlfriends. Leo saw her and made his way over to say hi."