On January 13, 2021, it was announced that the celebration of
the 25th anniversary of Japanese media franchise
Pokémon would commence with a musical collaboration with Perry. Describing herself as a "lifelong Pokémon fan", she stated that "In this moment of unknown, there are dependable places and characters and institutions and people, and I hope I can be one of them. That's what I hope for in my personal self, and even in my involvement with this collab." On May 10, 2021, the singer officially announced the single's title and release date through her social media accounts. Perry later told
MTV News that she was asked to write an empowerment anthem, and explained her philosophy regarding writing songs: "Some people write only heartache songs or sexy songs or a combination. And my lane seems to be the 'you can do it, ignite your light' empowerment. It's all within, you know? That's a message I love standing by." "Electric" was structured as an
electropop ballad composed in the
C major key. It talks about the joy that comes after achieving life goals with the help of friends. It was written by Perry,
Jon Bellion, Lucas Marx, Oliver Peterhof, Rachel Kanner, Bruce Wiegner, Jordan Johnson and Stefan Johnson. It was produced by
the Monsters & Strangerz, Wiegner and German. Perry's vocals spans from G3 to D5. ==Release and promotion==