"Rock the Casbah" is a song by the English punk rock band The Clash, released in 1982 as the second single from their fifth album, Combat Rock. It reached number eight on the Billboard Hot 100 chart in the US (their only top 10 single in that country) and, along with the track "Mustapha Dance", it also reached number eight on the dance chart.
Recording
"Rock the Casbah" was composed by the band's drummer Topper Headon, based on a piano part that he had been toying with. Finding himself in the studio without his three bandmates, Headon progressively taped the drum, piano and bass parts, recording the bulk of the song's musical instrumentation himself.

This origin makes "Rock the Casbah" different from the majority of Clash songs, which tended to originate with music written by the Joe Strummer–Mick Jones songwriting partnership. Upon entering the studio to hear Headon's recording, the other Clash members were impressed with his creation, stating that they felt the instrumental track was essentially complete. From this point, relatively minor overdubs were added, such as guitars and percussion.

However, Strummer was not impressed by the page of suggested lyrics that Headon gave him. According to Clash guitar technician Digby Cleaver, they were "a soppy set of lyrics about how much he missed his girlfriend". "Strummer just took one look at these words and said, 'How incredibly interesting!', screwed the piece of paper into a ball and chucked it backwards over his head."

Strummer had been developing a set of lyrical ideas that he was looking to match with an appropriate tune. Before hearing Headon's music, Strummer had already come up with the phrases "rock the casbah" and "you'll have to let that raga drop", as lyrical ideas that he was considering for future songs. After hearing Headon's music, Strummer went into the studio's toilets and wrote lyrics to match the song's melody.
The version of the song on Combat Rock, as well as many other Clash compilations, features an electronic sound effect beginning at the 1:52-minute point of the song. This noise is a monophonic version of the song "Dixie". The sound effect source was generated by the alarm from a digital wristwatch that Mick Jones owned, and was intentionally added to the recording by Jones.
Algerian rock singer Rachid Taha believes that an early demo tape of his, which he gave to The Clash in 1981, helped inspire the original song.
Lyrics
Joe Strummer had been toying with the phrase "rock the casbah" prior to hearing Topper Headon's musical track that would form the basis of the song. This phrase had originated during a jam session with Strummer's violinist friend Tymon Dogg. Dogg began playing Eastern scales with his violin and Strummer started shouting "rock the casbah!" Not hearing Strummer properly, Dogg thought that Strummer had been shouting at him to "stop, you cadger!"
Further inspiration for the lyrics of "Rock the Casbah" originated from Strummer observing the band's manager Bernie Rhodes moaning about The Clash's increasing tendency to perform lengthy songs. Rhodes asked the band facetiously "does everything have to be as long as this rāga?" (referring to the Indian musical style known for its length and complexity). Strummer later returned to his room at the Iroquois Hotel in New York City and wrote the opening lines to the song: "The King told the boogie-men 'you have to let that rāga drop.'"
The song gives a fabulist account of a ban on Western rock music by a Middle Eastern king. The lyrics describe the king's efforts to enforce and justify the ban, and the populace's protests against it by holding rock concerts in temples and squares ("rocking the casbah"). This culminates in the king ordering his military's fighter jets to bomb the protestors; however, after taking off, the pilots ignore his orders and instead play rock music on their cockpit radios, joining the protest and implying the loss of the king's power.
The events depicted in the song are similar to an actual ban on Western music, including rock music, enforced in Iran since the Iranian Revolution. Though classical music and public concerts were briefly permitted in the 1980s and 1990s, the ban was reinstated in 2005, and has remained in force ever since. Western music is still distributed in Iran through black markets, and Iranian rock music artists are forced to record in secret, under threat of arrest.
The song's lyrics feature various Arabic, Hebrew, Turkish, and Sanskrit loan-words, such as "sharif", "bedouin", "sheikh", "kosher", "rāga", "muezzin", "minaret", and "casbah".





