In late February or early March, Ali was in his apartment in Grozny, the capital of Chechnya, when he got a phone call from a local police officer. “Get dressed, we have to take you in,” the man said. Ali took the SIM card out of his cell phone, inserted it into a spare, blank phone, and hid his regular handset. By the time he was done, two police officers were knocking on the door. They put him in a car and drove to a nearby street, where two cars were waiting. The men put him in the back seat of one of the vehicles and got in with him.

“They pushed my head down so I wouldn’t see where we were going,” Ali, who is around thirty years old, told me. Soon, the car pulled up to an unmarked building. Ali saw two men he knew standing in front: “Their faces were all swollen from beatings. One of them said, ‘I told them everything.’ ”

Ali was taken into a room. “Their boss is sitting there, sprawled out,” he continued. “He says, ‘You take it up the ass.’ I start denying everything.” The boss asked Ali about another man, whom Ali knew to be gay. That morning, the man had called Ali and suggested that they meet. “I knew that if they tortured him he’d break and give everyone up,” Ali told me. He said to the police that he knew the man only as a business client. “They started beating me. I kept saying that I don’t know anything, I’ve never even heard that there were gays here in Chechnya.”

The men took him down to a basement, where there was a large central room, with cells and small chambers around the perimeter. In one chamber, officers dunked prisoners’ heads in a vat of ice water; in another, they attached clothespin-like clips wired to a large battery to earlobes or extremities. The cells held men and women, who screamed as they were beaten with fists and batons.

The jailers tortured Ali and then brought him back upstairs to face the boss, then back to the basement for more torture, then back up. Each time Ali was interrogated, the boss demanded that he admit that he was homosexual and give him the names of other gay men. Each time, Ali denied everything. He knew that his phone would yield no information.

Ali lost track of time. Eventually, he was thrown into a cell and left there without food. Ali counted the days by the number of times he was allowed to perform his ablutions, then to drink the dirty water. He had seven drinks of water in all, which means that his captivity lasted more than a week.

Then Ali was released, and instructed not to turn off his phone; his jailers told him to expect a call.

It wasn’t the first time Ali had been attacked because of his sexuality. On three occasions, he had been entrapped, beaten, and robbed. Most of the gay Chechen men I have interviewed have stories of being entrapped—usually by someone they met online—and beaten, sometimes raped, and later often blackmailed.

What occurred in Chechnya in late winter went beyond beatings and blackmail. Ali appears to have been one of the first men to be swept up in the recent wave of detentions of gay men, carried out on orders from the top of the Chechen government. Those who were brought in and later released issued dire warnings on Russian social networks, in closed groups for Chechen gay men.

On April 1st, Novaya Gazeta, a Moscow newspaper with a long and distinguished track record of reporting from Chechnya, published an article claiming that it had been able to confirm more than a hundred arrests and three deaths resulting from this sweep. A report by Human Rights Watch, issued in late May, suggests that the raids began in the last week of February, when a young man was arrested for using drugs. The police found photographs of men on his phone, along with social-media posts and messages that led them to identify him as gay.

Under torture, the man reportedly gave up the names of others, and the police began arresting them. Some media reports have claimed that Chechnya has confined gay men to “concentration camps,” but survivors’ testimony points to the existence of half a dozen detention facilities, where men are held for as long as a couple of weeks. In many cases, they are tortured. Some have been released, but others have been handed over to their relatives, who, according to survivors, are expected to kill gay family members. Following media reports of the purges, the leader of Chechnya, Ramzan Kadyrov, declared that gay Chechens did not exist. Kremlin spokespeople have for the most part dismissed or laughed off questions about the violence. One spokesperson from the Ministry of Foreign Affairs suggested to a Finnish journalist that Kadyrov might organize a tour so that he could see for himself whether gays existed in Chechnya—an offer that sounded like a threat.

Chechnya is one of the eighty-five constituent regions of the Russian Federation, and is ostensibly a secular state. In reality, it is a state within a state, run by Kadyrov, who is supported by Vladimir Putin. Kadyrov’s Chechnya is a more extreme version of Russia: a mafia state that uses religious rhetoric to enforce control over its citizens. Putin draws some of his authority from a close relationship to the Russian Orthodox Church; Kadyrov relies on a crude homespun version of Islam. Behavior including drinking (which is technically legal), drug use (which is not), women dressing immodestly, women smoking, contact of any sort between unmarried women and men, and open sexual expression is policed by law enforcement and by extended families.

Islam has served as Chechnya’s cultural glue for the past two decades. In the early nineteen-nineties, Chechens overwhelmingly supported a secular movement to secede from Russia. Moscow responded by waging war, which, between 1994 and 1996, decimated the region. The next wave of resistance coalesced around the mosques. When Russia launched its second offensive on Chechnya, in 1999, it faced men who identified as Islamic fighters. The pro-Moscow government that was finally installed in the aughts has harnessed much of the religious rhetoric to fortify its own power, while also persecuting anyone who identifies with strands of Islam that it deems radical. While many Chechens have only the most superficial familiarity with the Quran, their daily lives have been profoundly transformed: virtually all women now cover themselves, drinking has been severely restricted, and any hint of sexual expression has been banished.

L.G.B.T. people have been a prime target of Kremlin propaganda since 2012. That year, Putin returned to the Presidency for a third term, amid mass protests. In response, the Kremlin started queer-baiting the protesters. A succession of cities and, eventually, the federal parliament passed bills banning “propaganda of nontraditional sexual relations among minors.” Television presenters raged against imaginary homosexual recruiters of Russian children. (At the time, I was living in Russia and was active in protests against the regime and the anti-gay legislation.) Anti-gay violence became so pervasive that a café in central Moscow posted a notice saying that attacks would not be tolerated on the premises.