Will Smith joined Jimmy Fallon on "The Tonight Show" Thursday to sing a medley of theme songs.

Among the songs were the themes to "Golden Girls," "The Jeffersons," "Good Times," "Martin," "Full House," "Three's Company" and, of course, "The Fresh Prince of Bel-Air."

>> Read more trending news

Rolling Stone reported that the skit was a spin-off of Fallon's "History of Rap" series, which features Fallon and Justin Timberlake.

This isn't Smith's first musical collaboration with Fallon. In 2015, the two performed Rob Base and DJ E-Z Rock's "It Takes Two" with an iPad app. They danced together in "The Evolution of Hip-Hop Dancing," which included the Carlton dance. In 2012, the pair did a 1920s radio skit.

Watch Smith and Fallon perform "History of TV Theme Songs" in the video below. The "Fresh Prince" theme starts at the 2:40 mark.