Written and produced by Swift and Jack Antonoff, “Anti-Hero” is a pop rock and synth-pop song driven by looped drums and retro synthesizers. The lyrics discuss self-loathing, depression and anxiety, inspired by Swift’s nightmares and issues with depersonalization and self-hatred, critiquing the societal pressures and her shortcomings.