Bruno Mars spent his 4th of July by playing a lively gig at the White House yesterday.

As part of President Barack Obama's festivities for this weekend, the "Locked Out of Heaven" crooner entertained the crowd on the South Lawn in Washington, D.C. with a medley of songs that brought everyone back to the hits of the 80s and 90s.

"Thank you so much, you guys, for celebrating with us today," Bruno said before hopping into his set. "But it wasn't too long ago that we were playing bars and pubs [...] in L.A., trying to make a buck. So now that we're on the lawn, we just feel like doing something, do you mind if we just do what we used to do like six years ago?"

Before going down the musical memory lane, he added, "We're just going to jam out. This is what we're going to do."

He and his band covered Led Zepplin "Whole Lotta Love," The Outfield's "Your Love," Bell Biv Devoe's "Poison," Montell Jordan's "This is How We Do It," Bobby Brown's "Every Little Step," and Michael Jackson's "Rock With You." After the medley, Bruno then hopped into an extended version of his song, "Runaway Baby," off his 2010 album, Doo-Wops & Hooligans.

After performing a packed set of upbeat songs, Bruno introduced Barack and Michelle Obama who greeted the guests and inspired the crowd. You can see the president's speech here.

Before the performance, Bruno and his crew had a little photo shoot in front of the White House where they did two of today's popular dances, the Whip and the Nae Nae.

See These Celebs' Red Carpet Habits