The episode was written by series co-creator Trey Parker. Though he and the show's writing team had the concept of Raisins, it took several days to fully develop its story. They were unable to begin work on the episode until six days before its airdate. Parker and co-creator Matt Stone based Stan's breakup on their memories of elementary school "relationships", and the episode's use of licensed music is also representative of their upbringing. "Raisins" is the first episode to include the Goth kids, secondary characters within the show's universe. Stan and Wendy would later reconcile their relationship four years later in "The List".