A theme song is a song played at the beginning and end of a show. The purpose of the song is to establish a mood for the show. In same cases, as with the Brady Bunch and Gilligan's Island, the theme song provides some necessary exposition for people unfamilar with the show.