Happy endings are relative, though. If a film conforms to the R.S.S.’s vision of India, Ramesh excuses any manipulations of fact; if it departs from that vision, Ramesh believes that its creators seek to “tarnish” India’s image. He cited “The Empire,” a show on Disney’s Indian platform, about Babur, the Muslim warrior who founded the Mughal dynasty in India, in 1526. Why make a show that humanizes Babur, Ramesh wondered. He doesn’t consider Muslim rulers to be Indian, even if they were born in the country. “They were invaders,” he said. “Sacred Games,” a noirish Netflix series, depicted a Hindu man plotting an act of terrorism. Ramesh thought that it was propaganda: “You want to show Hindus as terrorists because you don’t want to acknowledge Islamic terrorism.” “Tandav”? Also propaganda. But he forgives directors who invert history, depicting Hindu kings defeating their Muslim foes in battles that they actually lost. “You have to show something that will inspire people,” he said. And when I asked him about “The Kashmir Files”—about how brazenly polarizing it was, how its tenor was far from sukaant—he claimed unflappably that it was all fact. “You should know the history,” he said.

The B.J.P. likes to attribute its success to a Hindu awakening. Ramesh, similarly, thinks that Bollywood would be wise to heed a newly aware public that will brook no offense. If Amazon feels daunted by the lawsuits against “Tandav”—if it feels compelled to make shows and movies for Hindu partisans—that doesn’t worry Ramesh: “They must be happy that we do court cases. We don’t go and destroy their buildings.” His own efforts to set Bollywood right were minor, but they represented the importance that the R.S.S. vests in cinema. “We recognize that this is the most powerful medium, which controls minds, which influences the opinions of people,” he said. “A film is a mirror of society,” he went on—a tired, tedious idea, although it struck me that the Hindu right, to obtain the precise reflection it wants, is recasting not just society but also the mirror itself.

The writer Saadat Hasan Manto, who crafted some of the darkest, funniest short stories of the twentieth century, once adored the cinema, sometimes watching three films a day. In the late nineteen-forties, just before the British Raj ended, Manto joined Bombay Talkies, the first great Indian studio. The subcontinent was bloodily being pulled apart into India and Pakistan. “Hindu-Muslim riots had begun,” Manto wrote later, “and as wickets fall in cricket matches, so were people dying.” In these precarious times, one of the studio’s heads, Savak Vacha, a Parsi, set about reorganizing Bombay Talkies, promoting several employees who, like Manto, happened to be Muslim. “Vacha began to receive hate mail,” Manto wrote. “He was told that if he did not get rid of the Muslims, the studio would be set on fire.” Manto felt responsible; how would he face his colleagues if the studio were visited by violence? His friend Ashok Kumar, Bollywood’s earliest superstar, tried to reassure him. “ ‘Manto, this is madness. . . . It will go away,’ ” Manto recalled him saying. “However, it never went away, this madness. Instead, as time passed, it became more and more virulent.”

There was, perhaps, never a prelapsarian India—an India resounding with religious harmony—but “in many ways Bollywood, in its beginning, was one of the most cosmopolitan employers,” Debashree Mukherjee, a scholar of South Asian cinema at Columbia University, told me. In part, this was a political alignment with freedom fighters like Mahatma Gandhi and Jawaharlal Nehru, who wanted India to be a plural country. But it was also born out of necessity, Mukherjee said, because the movie industry was created as a patchwork of many other trades. “Some of the earliest financing came from Gujarati Muslims, and some of the earliest writers were from the Parsi theatre scene,” she said. Lyricists wrote songs in Urdu, a language inflected with Arabic and Persian and fostered by Muslim nobles as a medium of high culture. On a set, the dress dada might be a Hindu tailor and the art dada a Muslim painter. “The workforce was diverse, which remains the case today,” Mukherjee said.

Onscreen, Indian Muslims tended to be typecast, but in mainstream Bollywood this wasn’t so unusual: every character tended to be typecast. When Muslims led the story, they often figured as Mughal nobles, as courtesans, or as players in what the film scholar Ira Bhaskar calls the “Muslim social,” in which older, feudal ways of life tilted at the twentieth century. The stock of secondary roles included the benevolent Muslim elder (Khan Chacha, or Khan Uncle), the soulful poet or composer, and the best friend.

The Muslim type appeared even in “Amar Akbar Anthony” (1977), a landmark film that enshrined the ideal of religious tolerance. “Amar Akbar Anthony” is unabashed Bollywood—long and exuberant, with a baroque plot and half a dozen musical numbers. Three brothers, separated in childhood, are adopted into different faiths, and grow up to be the film’s dashing heroes, each neatly falling in love with a woman from his own religion. The movie’s conclusion is never in doubt. Its energy springs instead from the question of how its various ends are obtained: how the brothers realize that they’re brothers, how they find their long-lost parents, how they win their women, how they defeat a crime lord who has tried to destroy their family. The film ends in a joyful, syncretic reunion—the Nehruvian nation transposed onto the family in the clearest possible fashion. In this idyll, Akbar, the Muslim brother, could have clerked in a bank or run a magazine; instead, he sings Urdu qawwalis, and his love life is its own little Muslim social.

“It’s only in the late nineteen-eighties, and really with greater and greater frequency in the nineteen-nineties, that mainstream films start showing Muslims as gangsters, smugglers, and then terrorists,” Bhaskar said. Not by coincidence, she pointed out, these were also the decades when the B.J.P. grew as an electoral force. In 1992, after calling for the destruction of a mosque in the temple town of Ayodhya, B.J.P. and R.S.S. leaders watched as their followers tore the building down in a matter of hours. The demolition ignited riots, ushering India toward its present condition of chronic, quivering polarization. In 2010, Bhaskar met the director Yash Chopra, who had made many staunchly secular movies between the sixties and the eighties. “We couldn’t make those kinds of films today,” he told her. The plural ideal had withered too much. “Back then, we had faith in it.”

But perhaps it has been a mistake to regard cinema as a moral compass, to treat it as anything other than what it is: a machine to make money by pleasing as many people as possible. “Some of the criticism that Bollywood is frivolous or misogynistic has come from the well-meaning liberal left, which looked down upon the form,” Nandini Ramnath, a film critic for the Indian news Web site Scroll.in, told me. Ramnath believes that Bollywood’s prime confection—the family entertainment—appeals to audiences not despite its vanilla universality but because of it. “If the left was anxious that such films weren’t prescriptive enough or noble enough—well, now the right wants films to be prescriptive in its own way,” she said. The leaders of the B.J.P. are “brilliant at creating the impression that they’re omniscient and omnipotent,” she added. “And I think the clearest signal is: think twice before you say or do anything, because you don’t know who it’s going to offend, and you can assume it’s going to offend us.”

In Bollywood taxonomy, the director Dibakar Banerjee makes “gentry films”—films for people whom the industry regards as the “thinking public, classy folks,” Ramnath told me. (A second kind, she said, are “mass pictures”—movies for everyone.) Banerjee’s sly, charming début, “Khosla Ka Ghosla,” or “Khosla’s Nest” (2006), featured a young engineer who postpones his plans to immigrate to the U.S. so that he can thwart a local don’s schemes to annex his family’s land. Another movie, “Shanghai” (2012), which kicks off with a deadly attack on a leftist academic, is broadly inspired by Vassilis Vassilikos’s novel “Z.” Banerjee, who is fifty-two, waited out much of the pandemic with his family in their house in the Himalayan foothills. On Zoom, he tends to stare into the distance and gather his thoughts before answering a question, a habit that often made me think the image had frozen. Then he’d slap at a mosquito on his arm, and I’d know he was still online.

In 2017, Banerjee felt an itch. He’d been reading with horror about the lynchings of Muslims and about the murder of a journalist named Gauri Lankesh, all at the hands of Hindu extremists. This was, he said, “a special eruption of the poison”—and yet much of the country seemed not to sense its dreadful import. “The middle class was aware only of a daily, ubiquitous ‘othering’ of people in our lives,” he said. “I really wanted to make a film about it.” The following year, Banerjee signed a contract with Netflix, for a movie tentatively called “Freedom,” and shot the bulk of it in the course of thirty-six days at the beginning of 2020, largely in Mumbai. “We had another five days of exterior sequences left, but that didn’t happen, because the Indian lockdown started,” he said.

Earlier this year, Banerjee sent me a Vimeo link to his finished film, which confronts the bigotry infecting India. Banerjee approaches his theme slowly and sideways, through the story of one Muslim family. The family’s first generation, living in Kashmir during the unrest in 1990, finds itself sundered from its Hindu friends. In the second generation, a young woman wants to buy an apartment in present-day Mumbai, but no one will sell to her. (Muslims in Indian cities commonly struggle to find places to live, a form of discrimination practiced by Hindu homeowners and residents’ societies.) In 2042, the woman’s son, a novelist, lives in an even more ghettoized Delhi—a geofenced city where the state machinery determines what people can do based on their social-credit score. The wretchedness of this future spills out of the movie; later, I seemed to remember every frame as being gloomy and grim, even though several scenes are brightly lit. “We’ve lived through enough history to understand what’s going on now,” Banerjee said. “Now we can extrapolate, which is what my film does.”

“He responds so enthusiastically to music we sometimes wonder if hell grow up to be an entirely average person who...

During the years that Banerjee wrote and shot his movie, the takeover of Bollywood quickened. By 2019—an election year—new power brokers had emerged in the industry, seemingly from nowhere. One of them, the son of a legislator allied with the B.J.P., directed “The Accidental Prime Minister,” which pilloried the Congress leader who had governed India before Modi. (“It felt like propaganda even as I was making it,” Arjun Mathur, one of the film’s actors, told me. “I really regret doing it.”) Another produced a fawning bio-pic of Modi. One director told me about Mahaveer Jain, a producer who “was a nobody” but who now partners with some of Bollywood’s biggest studios and filmmakers. Jain, who said that he couldn’t meet me because he was unwell, is often described as the B.J.P.’s chief Bollywood liaison. In January, 2019, he helped choreograph a meeting between Modi and a band of A-listers, which yielded a selfie that blazed through the Indian Internet. Conspicuously, not one person in the photo was Muslim.

Sometimes there are more deliberate flexes of muscle. In the summer of 2020, under the pretext of probing an actor’s suicide, federal authorities launched an investigation into the drug habits of some of Mumbai’s most famous stars. Among them was Karan Johar, the city’s most influential filmmaker—a director who runs a sprawling production firm, a TV host who jokes on his talk show with his Bollywood friends, and, as the son and the nephew of famous producers, a twenty-four-karat nepo kid. Kshitij Prasad, a young executive producer who was then with Johar’s company, was called in for questioning, and he later said that the officers seemed keen to pin something—anything—on Johar or on another celebrity. “They kept insisting I was supplying drugs to the industry,” Prasad said. (The investigating agency has denied Prasad’s version of events.) When Prasad refused to coöperate, he was sent to prison for ninety days, then released on bail. The threat of a tax raid has also become a weapon, one director told me. When he was raided himself, investigators noticed that he’d been donating small monthly sums to news sites like Scroll and the Wire, which often criticize the government. “They said, ‘Don’t contribute to any of these publications,’ ” he said. “So I had to stop.”