Will Smith and Jimmy Fallon gave fans a bit of TV nostalgia on Thursday's episode of The Tonight Show by singing a mash-up of classic sitcom theme songs.

The late-night host and Men in Black star threw it all the way back to the 1960s by whistling The Andy Griffith Show theme song and singing the I Dream of Jeannie opener. They also remixed a few 1970s and 1980s classics, including the theme songs from Good Times, The Jeffersons, Diff'rent Strokes, The Greatest American Hero and Three's Company. Of course, they included a few late '80s/early '90s hits, as well, like the tunes from The Golden GirlsFull House and Martin.

But the grand finale was when Smith threw it back to his own TV glory days and rapped The Fresh Prince of Bel-Air theme song.

Watch the video to hear the epic mash-up.

(E! and NBC are both part of NBCUniversal).

Don't miss E! News every weekday at 7 and 11 p.m.

We and our partners use cookies on this site to improve our service, perform analytics, personalize advertising, measure advertising performance, and remember website preferences. By using the site, you consent to these cookies. For more information on cookies including how to manage your consent visit our Cookie Policy.