“Till the World Ends” is a song by American recording artist Britney Spears, released as the second single from her seventh studio album, Femme Fatale. It was written and produced by Dr. Luke and Max Martin, with additional writing by Kesha and Alexander Kronlund, and additional production by Billboard. Kesha explained that her main inspiration for the song was imagining Spears and any other female musicians touring the world. On March 2, 2011, the single’s cover art and a snippet of the song surfaced online. “Till the World Ends” leaked online on March 3, 2011, and was released the following day.
“Till the World Ends” is composed as an uptempo dance-pop and electropop song with an electro beat. It opens with sirens, and has elements of trance and Eurodance. The song features a chant-like chorus, and lyrics in which Spears sings about dancing until the end of the world. “Till the World Ends” received comparisons to past hits by artists such as Kesha and Enrique Iglesias. The song received universal critical acclaim, with critics calling it a catchy dance track and complimenting its anthemic nature.