"Last Friday Night (T.G.I.F.)" is a song by American singer Katy Perry from her third studio album, Teenage Dream. The song was written and produced by Dr. Luke and Max Martin, who also co-wrote the song with Perry and Bonnie McKee. Perry stated that she was inspired to write the track after a night of wild partying . It was released as the album's fifth single on June 6, 2011, by Capitol Records, with a remix featuring American rapper Missy Elliott released to US radio stations and digital retailers on August 8, 2011; this version was included in Teenage Dream: The Complete Confection edition. It is a dance-pop song with lyrics about drunken fun and debauchery. Some of the risque lyrics in the song are often censored in radio versions of the song. The "T.G.I.F." in the title is an acronym for "Thank God It's Friday".