The song was inspired by the banning of rock music in Iran under Ayatollah Khomeini. The song gives a fictitious account of the ban being defied by the population who proceed to "rock the casbah", causing the King to order jet fighters to bomb the revellers. The pilots ignore the orders, and instead play rock music on their cockpit radios. The song does not mention Iran, nor does it give the specifics of any Islamic nation, and in fact it uses Arabic terms instead of Persian, mentioning casbah, sharif, bedouin, and sheikh. It is one of the more light-hearted songs by the Clash, particularly as they were well-established as a political band. Political undertones are often read into the song.