Following the release of her second studio album,
Under My Skin (2004), Lavigne wanted to record more "fun and upbeat" music. "Girlfriend" was written by Lavigne and
Lukasz "Dr. Luke" Gottwald, with Dr. Luke also producing the track. The song was written while Lavigne was intoxicated, with Lavigne commenting that the chorus only took two minutes to write. Lavigne was initially hesitant to release "Girlfriend" as the lead single from
The Best Damn Thing, referring to the song's conception as "just a joke." The song was not based on a personal experience, with Lavigne opting to write about general topics to appeal to a wider audience. In December 2006, Lavigne announced the song as the lead single from her then-upcoming album: Hey guys! I keep getting asked about my record and what it is called [...] so I wanted to give u guys all the info directly [...] I'm calling the record The Best Dam Thing, and the first single is called "Girlfriend", the single comes out February and the record in April. I promise you guys will love this record, it is my favorite one!!! And I can't wait! It is really fast, fun, young, bratty, aggressive, confident, cocky in a playful way [...] all the good stuff. In an effort to appeal to non-English markets, Lavigne recorded the song's chorus in seven different languages, including Spanish, French, Italian, Portuguese, German, Japanese, and Mandarin. Lavigne spent hours studying these different languages in order to ensure a correct pronunciation with her various deliveries. A Hindi version of the song was recorded twice, although it was scrapped due to issues with the diction and
meter when converting the song's chorus from its Western rhythms to Hindi. "Girlfriend" is a moderately fast
pop-punk,
power pop and
bubblegum pop song. According to the sheet music published at Musicnotes.com by
Alfred Publishing, the song is written in the key of
D major and is set in
time signature of common time with a
tempo of 164
beats per minute. Lavigne's vocal range spans two octaves, from
A3 to
D5. Lyrically, the song is about wanting to steal someone's boyfriend.
Songwriting claim On July 2, 2007,
the Rubinoos frontman Tommy Dunbar and songwriter James Gangwer filed a lawsuit for
infringement of copyright against Lavigne, Dr. Luke, RCA Records, and
Apple. Dunbar and Gangwer alleged that "Girlfriend" plagiarized the Rubinoos' 1979 single "I Wanna Be Your Boyfriend". Lavigne denied these accusations and noted the common usage of the lyrics employed in both songs; she cited
the Rolling Stones' "
Get Off of My Cloud" and
the Ramones' "I Wanna Be Your Boyfriend" as songs with similar lyrics. Lavigne's manager,
Terry McBride, similarly refuted the allegations, referring to Dunbar and Gangwer's claims as baseless. Both Dunbar and McBride consulted
musicologists to prepare reports on the similarities and dissimilarities between the songs. Dunbar's musicologist reported that there was an "unusually high degree of similarity" between the songs while McBride's musicologist reported that they do not share any significant lyrical or
melodic content. However, Dunbar and Gangwer later released a joint statement on January 15, 2008, in which they claimed to "completely exonerate" Lavigne and Dr. Luke from any wrongdoing. Following the settlement, Lavigne commented: "Well, [Dunbar and Gangwer] didn't win. But that happens all the time in the music business. I am not the first artist nor will I be the last to go through this." ==Critical reception==