Shortly after the 1979 Iranian revolution, the country’s national newspapers published a joint subpoena, unique in film history. All the key stars of “filmfarsi” – a form of popular cinema that embodied the aspirations and illusions of a modernising society – were summoned to the revolutionary court. The careers of hundreds of actors and directors ended overnight. Unlike the Hollywood blacklisting of the McCarthy era, there was not even the opportunity for a mock hearing. The cinema, seen as emblematic of corruption, “westoxification” and the decadence of the ousted Pahlavi regime, was consigned to oblivion.

Sex, violence and lots of dancing - the soundtrack to Iran pre 1979 Read more

So marked the end of one of the most thriving film industries in the Middle East, a cinema of song and dance, sex and seduction, violence and vengeance, which combined the western genres with local flavour – although always with an eye on Shia Islam, as the ultimate code to put everything in its right order. Iranian cinema was anything but limited to poetry and humanism, although both elements existed in some of the pre-revolutionary arthouse films. Millions of filmgoers cared more about a good pop song, the latest tearjerker and a car chase through the streets of Tehran.

Cinema was introduced to the country as the exclusive toy of the Qajar kings. Sporadic efforts to create a national cinema were interrupted by the allied occupation of neutral Iran during the second world war. After the war, the new shah, the Swiss-educated Mohammad Reza Pahlavi, was so busy making Iran a modern “island of stability” (to quote Jimmy Carter) that cinema was abandoned in favour of social and military infrastructure.

Facebook Twitter Pinterest Iren, often referred to as the Iranian Ava Gardner until the 1979 ban. Photograph: PR

What happened, however, was that people on the ground took control of the camera, telling their own tales. They even created their own national genres such as “jaheli” films, stories of tough guys in hats from south Tehran, pulling knives in the name of honour and hooking up with local cabaret singers, eventually saving them from a life of disgrace.

The term “filmfarsi” was coined to ridicule the sloppiness of these films. Today, they can be more properly judged in the broader context of Iranian mainstream cinema: genre films with popular stars; village girls lured by the big city but eventually returning to the tranquillity of home – as if everybody knew from the start that the modernisation project wouldn’t last. A miniature of Iranian society, foreshadowing things to come.

Not surprisingly, women were stereotyped: mothers or whores with little middle ground. Yet filmfarsi also offered them a chance to be seen. It even offered women agency and power. If the forced unveiling of women under the first Pahlavi was a crucial point in the history of Iranian women, the real unveiling, although highly fetishised, was through these movies, in which women travelled, taught, fought and settled their scores.

Something rare, euphoric and mad was recorded on celluloid: the Iranian way of life after the second world war, with all its paradoxes. Even the sleaziest films became documents. If the majority of key Iranian arthouse films of the 1960s and 1970s were set in villages and rural areas (a tradition continued until after the revolution), filmfarsi was about the thriving cities, which were expanding blindly, thanks to petrodollars.

Boy-meets-girl stories found an edge, as the Iranian way of life encountered a new world through American, Italian, French and Bollywood films. When Iranians loved a foreign film, they sometimes remade it. There is an Iranian version of Hitchcock’s Vertigo, as well as a feminist version of Billy Wilder’s Sabrina, in which two sisters compete for the affection of the family chauffeur. The result was often camp and only the barest traces of the original storyline remained. However, a confused and frustrating search for an identity through this bizarre process is detectable. Across roughly 1,000 films, they forged it in a remarkable way.

For many Iranians today, filmfarsi is the souvenir of a lost past. For me, after spending the past four years making a film about filmfarsi, I view the films as documents of how Iranian society changed; its schizophrenic nature in grabbing on to anything “modern” with one hand and rejecting it with the other.

Facebook Twitter Pinterest A poster for Seven Cities of Love, directed by Hamid Mojtahedi. Photograph: PR

It is also the story of a tragedy, both cinematic and real. One of the turning points of the Iranian revolution, and the key moment when the bells tolled the death of cinema, was when the Islamists set fire to the Rex in south-west Iran, where people were watching the second run of The Deer – an immensely popular 1974 drama about two former classmates rebelling against the system, which tested the censors. Directed by Masoud Kimiai and starring some of popular cinema’s best-loved figures, it transformed filmfarsi into something profound and politically committed. Four hundred people burned to death in that cinema. The pain is still there. But out of its ashes arose a new Iranian cinema.

Forty years after the Iranian revolution, filmfarsi, with all its joyful vibrancy and popular eclecticism, remains one of the biggest secrets of film history.

• Ehsan Khoshbakht’s Filmfarsi will world premiere at Cinema Rediscovered at Bristol Watershed on 26 July