“Dark Horse” is a song by American singer Katy Perry featuring rapper Juicy J. It was originally released on September 17, 2013, by Capitol Records as the first promotional single from Perry's fourth studio album, Prism (2013).
Inspired by the 1996 film The Craft, Perry and singer-songwriter Sarah Hudson wrote the first version of “Dark Horse” in Perry's hometown of Santa Barbara, California. Perry described the song as a "juxtaposition", as it mixed her, a pop music artist, with an "urban kind of hip-hop-flavored background soundtrack"; and its lyrics as "witchy and dark", written from the perspective of "a witch warning [a] man to not fall in love with [her]", and if so, she would be his last. Perry then asked producer Dr. Luke to contact one of his Kemosabe Records artists, American rapper Juicy J, for a guest verse. Juicy J complimented Perry as having a "very professional" work ethic and being substantially involved in the song's development.