"If I Were a Boy" is a song recorded by American singer Beyoncé for her third studio album, I Am... Sasha Fierce (2008). It was written by BC Jean and Toby Gad, who also handled its production alongside Knowles. Inspired by the difficult break-up of a romantic relationship, the song was initially recorded by Jean, whose record company rejected it. Knowles then recorded her own version. Jean was upset when she learned that Knowles was releasing it as a single, but eventually they reached an agreement. "If I Were a Boy" was released by Columbia Records on October 12, 2008, as the album's lead single alongside "Single Ladies (Put a Ring on It)". The two songs showcased the contrast between Knowles' personality and her aggressive onstage persona, Sasha Fierce. A Spanish version of the song, titled "Si Yo Fuera un Chico", was digitally released in Mexico and Spain.