"Thank You for Being a Friend" is a song written by Andrew Gold, who recorded it for his third album, All This and Heaven Too. The song reached number 25 on the Billboard Hot 100 chart in 1978.
The song was famously later re-recorded by Cynthia Fee to serve as the theme song for the NBC sitcom The Golden Girls, and recorded again for the series' CBS spin-off The Golden Palace.
The song was also featured as a dedication to the host on Casey Kasem's final American Top 40, broadcast on Fourth of July weekend in 2009; the end of two World Series games (Game 5 in 1988 and Game 4 in 1990); the "It's Always Sunny in Philadelphia" episode "Mac's Mom Burns Her House Down"; the end of Super Bowl XL,; the episode of The Simpsons titled "Double, Double, Boy in Trouble"; and on a May 2010 episode of Saturday Night Live hosted by Betty White, in which past and present cast members sang the song followed by a death metal version of the song performed by White while wearing a ski mask. Elaine Paige and Dionne Warwick released a recording of the song on Paige's duet album Elaine Paige and Friends in 2010.